1.0.8 • Published 5 years ago
lomit v1.0.8
lomit
Lightweight function for omitting properties from an object.
Install
Via npm
npm install --save lomitVia Yarn
yarn add lomitHow 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: '' }}