~webapps/unity-js-scopes/node.js

« back to all changes in this revision

Viewing changes to tools/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/array/#/diff.js

  • Committer: Marcus Tomlinson
  • Date: 2015-11-13 07:59:04 UTC
  • Revision ID: marcus.tomlinson@canonical.com-20151113075904-h0swczmoq1rvstfc
Node v4 (stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'use strict';
 
2
 
 
3
var value    = require('../../object/valid-value')
 
4
  , contains = require('./contains')
 
5
 
 
6
  , filter = Array.prototype.filter;
 
7
 
 
8
module.exports = function (other) {
 
9
        (value(this) && value(other));
 
10
        return filter.call(this, function (item) {
 
11
                return !contains.call(other, item);
 
12
        });
 
13
};