• Filters the input object using the test function and returns the filtered object.

    Type Parameters

    • T

    Parameters

    Returns T

    Example

    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 }