• Create a new object by picking only selected properties from an existing object

    Type Parameters

    • T extends Record<string, unknown>

    • U extends string | number | symbol

    Parameters

    • obj: T

      source object to pick properties from

    • Rest ...propertyNames: U[]

      the property names to pick

    Returns Pick<T, U>

Generated using TypeDoc