Return a copy of the object excluding the blacklisted properties
$ npm install --save exclude-keysvar exclude = require('exclude-keys');
var obj = {name: 'moe', age: 50, userid: 'moe1'};
console.log(exclude(obj, 'userid'));
// -> { name: 'moe', age: 50 }
var obj = {name: 'moe', age: 50, userid: 'moe1'};
console.log(exclude(obj, ['userid', 'name']));
// -> { age: 50 }Arguments:
object: Objectlist: list of items to exclude from object
Returns: Return a copy of the object excluding the blacklisted properties
© 2016 vikram. MIT License