Const
Returns a collector that returns the index of the last entry from the Iterable that satisfies the 'predicate' function.
Type of items in the source.
A function that tests each entry for a condition.
Collector that returns the index of the last entry from the Iterable that satisfies the 'predicate' function.
const result = lastIndexAsync((x) => x > 0)([1, 2, 3]);console.log(result); // 2 Copy
const result = lastIndexAsync((x) => x > 0)([1, 2, 3]);console.log(result); // 2
Returns a collector that returns the index of the last entry from the Iterable that satisfies the 'predicate' function.