Grouping.indexOf Method

Returns the index where the element equal to value first appears in this sequence, optionally using an equality comparer to compare the value to elements in the sequence.
 

Parameters

value

Type: Object
The value to search for in this sequence.
equalityComparer

Type: IEqualityComparer
Optional: True

Return Value


Type: Number (Integer)
The index in this sequence where the value first appears, or -1 if it is not in this sequence.