diff --git a/README.md b/README.md index 7a7191239..c92622899 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash-amd v4.16.5 +# lodash-amd v4.16.6 The [Lodash](https://lodash.com/) library exported as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules. @@ -27,4 +27,4 @@ require({ }); ``` -See the [package source](https://github.com/lodash/lodash/tree/4.16.5-amd) for more details. +See the [package source](https://github.com/lodash/lodash/tree/4.16.6-amd) for more details. diff --git a/_baseXor.js b/_baseXor.js index db29f6f8c..d4689ab1f 100644 --- a/_baseXor.js +++ b/_baseXor.js @@ -23,9 +23,8 @@ define(['./_baseDifference', './_baseFlatten', './_baseUniq'], function(baseDiff othIndex = -1; while (++othIndex < length) { - var othArray = arrays[othIndex]; - if (othArray !== array) { - result[index] = baseDifference(result[index] || array, othArray, iteratee, comparator); + if (othIndex != index) { + result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); } } } diff --git a/main.js b/main.js index 814e1d481..7f3226538 100644 --- a/main.js +++ b/main.js @@ -13,7 +13,7 @@ var undefined; /** Used as the semantic version number. */ - var VERSION = '4.16.5'; + var VERSION = '4.16.6'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; @@ -4414,9 +4414,8 @@ othIndex = -1; while (++othIndex < length) { - var othArray = arrays[othIndex]; - if (othArray !== array) { - result[index] = baseDifference(result[index] || array, othArray, iteratee, comparator); + if (othIndex != index) { + result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); } } } diff --git a/package.json b/package.json index 4e92c04ee..4a8f4ad01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lodash-amd", - "version": "4.16.5", + "version": "4.16.6", "description": "Lodash exported as AMD modules.", "keywords": "amd, modules, stdlib, util", "homepage": "https://lodash.com/custom-builds",