compact.js 148 Bytes edit raw blame history 1 2 3 4 5 6 7 'use strict'; var filter = require('./filter'); module.exports = function (obj) { return filter(obj, function (val) { return val != null; }); };