Filters the input object using the test function and returns the filtered object.
import { filter } from 'deleight/object/operations'const r = filter({ a: 1, b: 2, c: 3 }, (obj, key) => obj[key] > 1); console.log(r) // { b: 2, c: 3 } Copy
import { filter } from 'deleight/object/operations'const r = filter({ a: 1, b: 2, c: 3 }, (obj, key) => obj[key] > 1); console.log(r) // { b: 2, c: 3 }
Filters the input object using the test function and returns the filtered object.