compact.js 186 B

12345678
  1. "use strict";
  2. var filter = require("./filter")
  3. , isValue = require("./is-value");
  4. module.exports = function (obj) {
  5. return filter(obj, function (val) { return isValue(val); });
  6. };