find index - nodef/extra-string GitHub Wiki
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