Skip to content

ryanhefner/lomit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🪶 Lightweight object omit method, just because.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •