• Create a shallow copy of the given object, that contains the given keys, independent of casing. Non existing keys in the source object are ignored.

    Returns

    • An object containing the given key-value pairs in its original case or an empty object if none of them are found.

    Type Parameters

    • T extends Record<string, any>

    Parameters

    • Optional obj: T

      Object to pick the given key from.

    • Rest ...keys: string[]

      Keys of the pair to be picked.

    Returns Partial<Pick<T, typeof keys[number]>>

Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.