JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 335233
  • Score
    100M100P100Q169476F
  • License MIT

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

Package Exports

  • omit.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (omit.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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