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

    Type Parameters

    • T extends Record<string, unknown>


    • keys: string[]

      Properties to be selected.

    • obj: T

      Object from which the values are taken.

    Returns Partial<T>

    An object with the selected keys and corresponding values.

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