diff options
author | Rich Trott <rtrott@gmail.com> | 2016-08-06 12:11:02 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-08-09 21:19:02 -0700 |
commit | e313c0286b1c1a7267516a7b2b4c01fa76c71ec0 (patch) | |
tree | 7358ae3f4af0979c124eca46d734314df40a6bc6 /tools/eslint/node_modules/lodash/difference.js | |
parent | 49e473a45fb3e13fdd4588c6241b71bbac4fe5ab (diff) | |
download | node-new-e313c0286b1c1a7267516a7b2b4c01fa76c71ec0.tar.gz |
tools: update to ESLint 3.2.2
PR-URL: https://github.com/nodejs/node/pull/7999
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'tools/eslint/node_modules/lodash/difference.js')
-rw-r--r-- | tools/eslint/node_modules/lodash/difference.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/eslint/node_modules/lodash/difference.js b/tools/eslint/node_modules/lodash/difference.js index bd52f54eae..8c4af3dcaa 100644 --- a/tools/eslint/node_modules/lodash/difference.js +++ b/tools/eslint/node_modules/lodash/difference.js @@ -1,14 +1,16 @@ var baseDifference = require('./_baseDifference'), baseFlatten = require('./_baseFlatten'), - isArrayLikeObject = require('./isArrayLikeObject'), - rest = require('./rest'); + baseRest = require('./_baseRest'), + isArrayLikeObject = require('./isArrayLikeObject'); /** - * Creates an array of unique `array` values not included in the other given - * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) * for equality comparisons. The order of result values is determined by the * order they occur in the first array. * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * * @static * @memberOf _ * @since 0.1.0 @@ -22,7 +24,7 @@ var baseDifference = require('./_baseDifference'), * _.difference([2, 1], [2, 3]); * // => [1] */ -var difference = rest(function(array, values) { +var difference = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; |