We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Get index of first value that satisfies the test, like Array.findIndex().
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