🪶 Lightweight object omit method, just because.
MIT License
Lightweight function for omitting properties from an object.
Via npm
npm install --save lomit
Via Yarn
yarn add lomit
import { omit } from 'lomit';
omit({name: '', title: ''}, ['title']);
Output: {name: ''}
import { omit } from 'lomit';
omit({name: '', title: '', location: { city: '', state: '' }}, ['title', 'location.city']);
Output: {name: '', location: { state: '' }}