@skt-t1-byungi/array-find-index
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

1.57 kB

Total Files

4

Last publish

Collaborators

  • skt-t1-byungi