1. omit.js
Utility function to create a shallow copy of an object which had dropped some fields.
omit.js
Package: omit.js
Created by: benjycui
Last modified: Wed, 22 Jun 2022 21:10:42 GMT
Version: 2.0.2
License: MIT
Downloads: 1,675,895
Repository: https://github.com/benjycui/omit.js

Install

npm install omit.js
yarn add omit.js

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin