removeUndefinedNull
Remove null and undefined values from an object.
Available since v1.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
obj | T | an object |
Returns
Section titled “Returns”Partial<T> — A shallow copy of the object without null or undefined values
Examples
Section titled “Examples”Strip null and undefined values
Section titled “Strip null and undefined values”Returns a shallow copy of the object without null or undefined properties.
