omit-deep-2
Omit object values recursively by key / keys / predicate
Installation
npm install --save omit-deep-2
Usage
// For purposes of this example, assume that this object// is reinitialized before each omitDeep callvar obj =a: 1b: 2c:d: 3e: 4;// With key;// returns { b: 2, c: { d: 3, e: 4 } }// With multiple keys;// returns { c: {} }// Recursively;// returns { b: 2, c: { e: 4 } }// With predicate function;// returns { a: 1 }