0.1.0 • Published 8 years ago
remove-undefined v0.1.0
remove-undefined
Remove properties with the value undefined from an Object.
Installation
npm
$ npm install remove-undefinedyarn
$ yarn add remove-undefinedUsage
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
0.1.0
8 years ago