pickProps

Function

Pick a set of properties from an object onto a new object Undefined properties are not copied

  • pickProps(obj: any, props: string[]) : any

Parameters

Parameter Type Default Notes
obj Required any
props Required string[]

Returns

any

Function defined in common/src/objects/pickProps.ts:7