UNPKG

@klodianimeri/pipejs

Version:

Pipe functions that provide convenient and efficient ways to work with iterators.

3 lines (2 loc) 177 B
import { findLastIndex } from "./find-last-index.js"; export const lastIndexOf = (value: any, fromIndex?: number) => findLastIndex((element) => element === value, fromIndex);