compact.js 189 B

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