Miss any of our Open RFC calls?Watch the recordings here! »

lomit

0.2.0 • 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

880

Version

0.2.0

License

MIT

Unpacked Size

12.3 kB

Total Files

10

Last publish

Collaborators

  • avatar