omit-nil
v1.0.2
Published
Creates an object composed of the own and inherited enumerable string keyed properties of object that doesn't null or undefined.
Downloads
29
Maintainers
Readme
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.