Files
icehrm/web/node_modules/omit.js
2020-05-20 18:47:29 +02:00
..
2020-05-20 18:47:29 +02:00
2020-05-20 18:47:29 +02:00
2020-05-20 18:47:29 +02:00
2020-05-20 18:47:29 +02:00
2020-05-20 18:47:29 +02:00
2020-05-20 18:47:29 +02:00

omit.js

npm package NPM downloads Dependency Status

Utility function to create a shallow copy of an object which had dropped some fields.

Usage

npm i --save omit.js
var omit = require('omit.js');
omit({ name: 'Benjy', age: 18 }, [ 'name' ]); // => { age: 18 }

API

omit(obj: Object, fields: string[]): Object

Return a shallow copy which had dropped fields.

License

MIT