• Creates an object composed of the object properties predicate returns truthy for. The predicate is invoked with two arguments: (value, key).

    Type Parameters

    • T
    • S

    Parameters

    • object: undefined | null | Dictionary<T>

      The source object.

    • Optional predicate: ValueKeyIterateeTypeGuard<T, S>

      The function invoked per property.

    Returns Dictionary<S>

    Returns the new object.

    Example

    var object = { 'a': 1, 'b': '2', 'c': 3 };

    _.pickBy(object, _.isNumber);
    // => { 'a': 1, 'c': 3 }
  • Type Parameters

    • T
    • S

    Parameters

    • object: undefined | null | NumericDictionary<T>
    • predicate: ValueKeyIterateeTypeGuard<T, S>

    Returns NumericDictionary<S>

    See

    _.pickBy

  • Type Parameters

    • T

    Parameters

    • object: undefined | null | Dictionary<T>
    • Optional predicate: ValueKeyIteratee<T>

    Returns Dictionary<T>

    See

    _.pickBy

  • Type Parameters

    • T

    Parameters

    • object: undefined | null | NumericDictionary<T>
    • Optional predicate: ValueKeyIteratee<T>

    Returns NumericDictionary<T>

    See

    _.pickBy

  • Type Parameters

    • T extends object

    Parameters

    • object: undefined | null | T
    • Optional predicate: ValueKeyIteratee<T[keyof T]>

    Returns Partial<T>

    See

    _.pickBy