1.0.2 • Published 3 years ago

omit-nil v1.0.2

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

omitNil

Creates an object composed of the own and inherited enumerable string keyed properties of object that doesn't null or undefined.

Usage: omitNil<T>(object: T): T

import { omitNil } from 'omit-nil'

omitNil({
  a: null,
  b: `Some value`,
  c: undefined,
  d: false
})
// Output: { b: 'Some value', d: false }

This module exported from utilizes project.