• Picks specific properties from an object and returns them as an array.

    Type Parameters

    • T extends object

      The type of the object.

    • TKey extends string | number | symbol

      The type of the keys to pick.

    • const TKeys extends readonly TKey[]

      The type of the array of keys.

    Parameters

    • obj: T

      The object from which to pick properties.

    • keys: TKeys

      The keys to pick from the object.

    Returns T[TKeys[number]][]

    An array containing the picked properties.

Generated using TypeDoc