diff.js 300 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) && value(other));
  7. return filter.call(this, function (item) {
  8. return !contains.call(other, item);
  9. });
  10. };