0.1.3 • Published 6 years ago
string-find v0.1.3
string-find
NOTE: string-find was renamed to @extra-string/find.
Get first character that satisfies the test, like Array.find()
.
const find = require('string-find');
// find(<string>, <testFn>, [thisArg])
find('badd0g', (v) => v>'f');
// 'g'
find('badcab', (v) => v>'f');
// undefined
find('', (v) => v>'f');
// undefined