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