2.0.20 • Published 4 years ago

@extra-string/filter.min v2.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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');
// ''

extra-string

2.0.20

4 years ago

2.0.19

4 years ago

2.0.18

4 years ago

2.0.17

4 years ago