Takaro - v0.4.11
    Preparing search index...
    • Creates an object composed of the picked object properties.

      Type Parameters

      • T extends object
      • U extends string | number | symbol

      Parameters

      • object: T

        The source object.

      • Optional...props: Many<U>[]

        The property names to pick, specified individually or in arrays.

      Returns Pick<T, U>

      Returns the new object.

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

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

      • T

      Parameters

      Returns PartialObject<T>

      _.pick