delete-obj-property
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i delete-obj-property

    Weekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    3.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • orange662