mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Apply let/const transform.
This commit is contained in:
10
_baseXor.js
10
_baseXor.js
@@ -13,16 +13,16 @@ import baseUniq from './_baseUniq.js';
|
||||
* @returns {Array} Returns the new array of values.
|
||||
*/
|
||||
function baseXor(arrays, iteratee, comparator) {
|
||||
var length = arrays.length;
|
||||
const length = arrays.length;
|
||||
if (length < 2) {
|
||||
return length ? baseUniq(arrays[0]) : [];
|
||||
}
|
||||
var index = -1,
|
||||
result = Array(length);
|
||||
let index = -1;
|
||||
const result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
var array = arrays[index],
|
||||
othIndex = -1;
|
||||
const array = arrays[index];
|
||||
let othIndex = -1;
|
||||
|
||||
while (++othIndex < length) {
|
||||
if (othIndex != index) {
|
||||
|
||||
Reference in New Issue
Block a user