Share via


SP.EnumerableArray.indexOf(item, start) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Gets the index of the specified value in the SP.EnumerableArray object.

var value = SP.EnumerableArray.indexOf(item, start);

Parameters

item

Type: Object

The value to find in the array.

start

Type: Int32

The index that specifies the starting element for searching the array.

Return Value

Type: Int32

The index location of the specified item in the array, if found; otherwise, -1.

Remarks

This method returns the index location of the first occurrence of the element specified by the item parameter in the enumerable array from the start location specified by the start parameter.

Applies To

SP.EnumerableArray Class

See Also

Reference

SP.EnumerableArray Methods

SP.EnumerableArray Properties

SP Namespace