You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 weeks ago | |
---|---|---|
.. | ||
es | 3 weeks ago | |
lib | 3 weeks ago | |
LICENSE | 3 weeks ago | |
README.md | 3 weeks ago | |
index.d.ts | 3 weeks ago | |
package.json | 3 weeks ago |
README.md
omit.js
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