remove-undefined

Remove properties with the value `undefined`.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
remove-undefined
000.1.05 years ago5 years agoMinified + gzip package size for remove-undefined in KB

Readme

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