diff.js 295 B

1234567891011
  1. "use strict";
  2. var value = require("../../object/valid-value")
  3. , contains = require("./contains")
  4. , filter = Array.prototype.filter;
  5. module.exports = function (other) {
  6. value(this);
  7. value(other);
  8. return filter.call(this, function (item) { return !contains.call(other, item); });
  9. };