• 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 Rest ...props: Many<U>[]

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

    Returns Pick<T, U>

    Returns the new object.

    Example

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

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

    • T

    Parameters

    • object: undefined | null | T
    • Rest ...props: PropertyPath[]

    Returns Partial<T>

    See

    _.pick

Generated using TypeDoc