0.1.5 • Published 6 years ago

map-filterx v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

map-filterx

NPM

Filter values in map that pass the test, like Array.filter().

const filter = require('map-filter');
// filter(<map>, <test function>, [this])

filter(new Map().set(0, 2).set(1, 9).set(2, 8), (v) => v>4);
// Map {1=>9, 2=>8}
filter(new Map([['m', 'm'], ['a', 'a'], ['t', 't']]), (v, i) => v>'l');
// Map {'m'=>'m', 't'=>'t'}
filter(new Map([['r', 18], ['e', 5], ['l', 12], ['o', 15]]), (v, i, map) => v<10);
// Map {'e'=>5}
0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago