lomit

🪶 Lightweight object omit method, just because.

MIT License

Downloads
26.2K
Stars
1
Committers
2

lomit

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

Package Rankings
Top 7.5% on Npmjs.org
Badges
Extracted from project README
npm NPM npm
Related Projects