Function pick

  • Type Parameters

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

    Parameters

    • object: T
    • Rest...keys: readonly K[]

    Returns Pick<T, K>

  • Type Parameters

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

    Parameters

    • object: T
    • Rest...keys: readonly (readonly K[])[]

    Returns Pick<T, K>