Recursively filter an object or array.
Install
npm install recursive-filter
Usage
const recursiveFilter = ; ;//=> { a: 1, b: 2 }
API
recursiveFilter(obj, predicate)
obj
Type: object or array
The object or array to filter.
predicate
Type: (value, key) => boolean-convertable
The predicate to compare the items to.