Newts Parading Majestically
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

lomit

0.3.1 • Public • Published

lomit

npm NPM npm Coveralls github CircleCI Snyk Vulnerabilities for GitHub Repo

Lightweight function for omitting properties from an object.

Install

Via npm

npm install --save lomit

Via Yarn

yarn add lomit

How to use

import omit from 'lomit';
 
omit({name: '', title: ''}, ['title']);
Output: {name: ''}

Deep omits (New!)

import omit from 'lomit';
 
omit({name: '', title: '', location: { city: '', state: '' }}, ['title', 'location.city']);
Output: {name: '', location: { state: '' }}

License

MIT © Ryan Hefner

Keywords

Install

npm i lomit

DownloadsWeekly Downloads

1,752

Version

0.3.1

License

MIT

Unpacked Size

12.9 kB

Total Files

10

Last publish

Collaborators

  • avatar