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

    Returns

    An object with the selected keys and corresponding values.

    Type Parameters

    • T extends Record<string, unknown>

    Parameters

    • keys: string[]

      Properties to be selected.

    • obj: T

      Object from which the values are taken.

    Returns Partial<T>

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