omit-undefined
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i omit-undefined

Weekly Downloads

603

Version

1.0.1

License

MIT

Unpacked Size

53.9 kB

Total Files

5

Last publish

Collaborators

  • natqe3