1.1.3 • Published 5 years ago

@extra-string/find-index v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Get index of first value that satisfies the test, like Array.findIndex().

const findIndex = require('@extra-string/find-index');
// findIndex(<string>, <testFn>, [thisArg])

findIndex('badd0g', (v) => v>'f');
// 5
findIndex('badcab', (v) => v>'f');
// -1
findIndex('', (v) => v>'f');
// -1

extra-string

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago