1.1.19 • Published 10 years ago

just-filter v1.1.19

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

just-filter

Part of a library of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

import filter from 'just-filter';

// returns a new object containing those original properties for which the predicate returns truthy
filter({a: 3, b: 5, c: 9}, (key, value) => value < 6); // {a: 3, b: 5}
filter({a1: 3, b1: 5, a2: 9}, (key, value) => key[0] == 'a'); // {a1: 3, a2: 9}
filter({a: 3, b: 5, c: null}, (key, value) => value); // {a: 3, b: 5}
1.1.19

10 years ago

1.1.18

10 years ago

1.1.17

10 years ago

1.1.16

10 years ago

1.1.15

10 years ago

1.1.10

10 years ago

1.1.9

10 years ago

1.1.8

10 years ago

1.1.7

10 years ago

1.1.5

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago