remove-undefined

0.1.0 • Public • Published

remove-undefined

Remove properties with the value undefined from an Object.

Installation

npm

$ npm install remove-undefined

yarn

$ yarn add remove-undefined

Usage

const removeUndefined = require('remove-undefined');

const ringDonut = { sugar: true, filling: undefined };

console.log(ringDonut); // -> { sugar: true, filling: undefined }
console.log(removeUndefined(ringDonut)); // -> { sugar: true }

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    77
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    77

Package Sidebar

Install

npm i remove-undefined

Weekly Downloads

52

Version

0.1.0

License

MIT

Last publish

Collaborators

  • gawhelan