1.0.1 • Published 3 years ago

omit-undefined v1.0.1

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

omitUndefined

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

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

import { omitUndefined } from 'omit-undefined'

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

This module exported from utilizes project.