Creates a new object containing only the entries for which predicate returns true.
predicate
true
The source object.
Function to test each value and key.
filterValues({ a: 1, b: 2, c: 3 }, v => v > 1) // => { b: 2, c: 3 } Copy
filterValues({ a: 1, b: 2, c: 3 }, v => v > 1) // => { b: 2, c: 3 }
Creates a new object containing only the entries for which
predicatereturnstrue.