- pick<T extends object, U extends string | number | symbol>(
object: T,
...props?: Many<U>[],
): Pick<T, U> Type Parameters
- T extends object
- U extends string | number | symbol
Parameters
- object: T
Optional
...props: Many<U>[]
Returns Pick<T, U>
Returns the new object.
- pick<T>(
object: undefined | null | T,
...props: Many<PropertyPath>[],
): Partial<T> Returns Partial<T>
Creates an object composed of the picked
object
properties.