poly-exclude
Excludes given keys from an object or array
Motivation
It's a common task in data transformation pipelines to remove certain keys from incoming objects or arrays.
Features
- Works with objects and arrays
- Automatically curried
Installation
npm install poly-exclude
Testing
npm test
Usage
var exclude = ; var object = a: 100 b: 200 c: 'blah, blah'; var array = 100 200 'blah, blah'; // Complete applicationconsole; // => { b: 200 }console; // => [200] // Partial applicationvar removeB = ;console; // => { a: 100, c: 'blah, blah' } var remove1 = ;console; // => [100, 'blah, blah']