- leastIndex(iterable): number | undefined
Parameters
iterable: Iterable<unknown>
Returns number | undefined
- leastIndex<T>(iterable, comparator): number | undefined
Parameters
iterable: Iterable<T>
comparator: ((a, b) => number)
- (a, b): number
Returns number
Returns number | undefined
- leastIndex<T>(iterable, accessor): number | undefined
Parameters
iterable: Iterable<T>
accessor: ((a) => unknown)
- (a): unknown
Returns unknown
Returns number | undefined
Returns the index of the least element of the specified iterable according to the specified comparator.