Creates an object composed of the picked object properties.
A new object with the properties.
let object = { a: 1, b: '2', c: 3 }pick(object, ['a', 'c'])// { a: 1, c: 3 }pick(object, (x) => isNumber(x))// { a: 1, c: 3 }
omit
The source object.
The properties to pick. If paths is a function, it will be invoked per property with two values (value, key).
paths
(value, key)
Generated using TypeDoc
Creates an object composed of the picked object properties.
Returns
A new object with the properties.
Example
See
omit