@pleisto/active-support
    Preparing search index...

    Function pickBy

    • 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.

      • Optionalpredicate: ValueKeyIterateeTypeGuard<T, S>

        The function invoked per property.

      Returns Dictionary<S>

      Returns the new object.

      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>

      _.pickBy

    • Type Parameters

      • T

      Parameters

      • object: undefined | null | Dictionary<T>
      • Optionalpredicate: ValueKeyIteratee<T>

      Returns Dictionary<T>

      _.pickBy

    • Type Parameters

      • T

      Parameters

      • object: undefined | null | NumericDictionary<T>
      • Optionalpredicate: ValueKeyIteratee<T>

      Returns NumericDictionary<T>

      _.pickBy

    • Type Parameters

      • T extends object

      Parameters

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

      Returns Partial<T>

      _.pickBy