Skip to content

MikeIbberson/clean-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Helper function for recursively removing undefined values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published