2.0.20 • Published 4 years ago
@extra-string/filter.min v2.0.20
Filter characters that pass the test, like Array.filter()
.
This is part of package extra-string.
This is browserified, minified version of @extra-string/filter. It is exported as global variable string_filter. CDN: unpkg, jsDelivr.
const filter = require('@extra-string/filter');
// filter(<string>, <testFn>, [thisArg])
filter('g00df00d', (v) => v<='f');
// '00df00d'
filter('badfood', (v) => v<='f');
// 'badfd'
filter('', (v) => v<='f');
// ''