pickProps()function

pickProps(obj: T, ...keys: K[]): Pick<T, K>
ParamType
objT
The object to pick the props from. required
keysK[]
The keys of the props to pick. required
Return
Pick<T, K>
A new object containing only the picked props.

Pick several props from an object and return a new object with only those props.