- Preparing search index...
- The search index is not available
LDesign 基础库
- 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: Many<PropertyPath>[]
Returns Partial<T>
Creates an object composed of the picked
object
properties.Example