clean-object-helper

1.0.1 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i clean-object-helper

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.95 kB

Total Files

7

Last publish

Collaborators

  • 3merge