Socket
Socket
Sign inDemoInstall

omit.js

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omit.js

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


Version published
Weekly downloads
242K
decreased by-35.99%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 08 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc