Object
Pick

_.pick(object, [paths])

Creates an object composed of the picked object properties.

Arguments

object (Object): The source object.
[paths] (...(string|string[])): The property paths to omit.

Returns

(Object): Returns the new object.

Example

Deep