compact.js 148 B

1234567
  1. 'use strict';
  2. var filter = require('./filter');
  3. module.exports = function (obj) {
  4. return filter(obj, function (val) { return val != null; });
  5. };