omit.js
Utility function to create a shallow copy of an object which had dropped some fields.
Last updated 6 years ago by chenshuai2144 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install omit.js 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.2                                ...           latest (4 years ago)

7 Versions

  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           7 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |