2.0.20 • Published 4 years ago
@extra-string/find.min v2.0.20
Get first character that satisfies the test, like Array.find()
.
This is part of package extra-string.
This is browserified, minified version of @extra-string/find. It is exported as global variable string_find. CDN: unpkg, jsDelivr.
const find = require('@extra-string/find');
// find(<string>, <testFn>, [thisArg])
find('badd0g', (v) => v>'f');
// 'g'
find('badcab', (v) => v>'f');
// undefined
find('', (v) => v>'f');
// undefined