pruneEmpty
Stentor API Reference / stentor-utils/src / pruneEmpty
Function: pruneEmpty()
pruneEmpty\<
T>(obj):T
Defined in: packages/stentor-utils/src/json.ts:13
Prune an object by removing all empty strings, NaNs, undefined, and null values.
Type Parameters​
T​
T
Parameters​
obj​
T
The object to be pruned.
Returns​
T
A new object with the empty, NaN, undefined, and null values removed.