0.1.3 • Published 6 years ago

string-findindex v0.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

string-findindex

NOTE: string-findindex was renamed to @extra-string/find-index. NPM

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

const findIndex = require('string-findindex');
// findIndex(<string>, <testFn>, [thisArg])

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

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago