just-filter
Part of a library of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.
; // returns a new object containing those original properties for which the predicate returns truthy; // {a: 3, b: 5}; // {a1: 3, a2: 9}; // {a: 3, b: 5}