Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@skt-t1-byungi/array-find-index

skt-t1-byungi21MIT0.2.0TypeScript support: included

findIndex() for old browser, in typescript.

array, findIndex

readme

@skt-t1-byungi/array-find-index

findIndex() for old browser, in typescript.

Example

findIndex([1, 2, 3, 4], x => x % 2 === 0)
// => 1

findIndex(array, finder, [thisArg])

array

Target array.

finder

Function is a predicate, to test each element.

thisArg

Value to use as this when executing callback.

License

MIT