• 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.

    Type Parameters

    • T extends Record<string, any>

    Parameters

    • Optionalobj: T

      Object to pick the given key from.

    • ...keys: string[]

      Keys of the pair to be picked.

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

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

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