diff.js 298 B

12345678910111213
  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) {
  9. return !contains.call(other, item);
  10. });
  11. };