omit-undefined
v1.0.1
Published
Creates an object composed of the own and inherited enumerable string keyed properties of object that doesn't undefined.
Downloads
6,343
Maintainers
Readme
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.