method ReadonlyArray.indexOf Private ReadonlyArray.indexOf(searchElement: T,fromIndex?: number,): number Returns the index of the first occurrence of a value in an array. Parameters searchElement: T The value to locate in the array. optional fromIndex: number The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. Return Type number