clean-object-helper
v1.0.1
Published
This is a no-dependency helper function that recurses an object and drops its undefined values.
Downloads
14
Readme
clean-object
This is a no-dependency helper function that recurses an object and drops its undefined values.
const clean = require("clean-object-helper");
const output = clean({
foo: 1,
bar: 2,
quuz: undefined,
});
// dropped quuz
console.log(output);