mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Use the new operator with the Array constructor.
This commit is contained in:
@@ -18,7 +18,7 @@ function baseXor(arrays, iteratee, comparator) {
|
||||
return length ? baseUniq(arrays[0]) : []
|
||||
}
|
||||
let index = -1
|
||||
const result = Array(length)
|
||||
const result = new Array(length)
|
||||
|
||||
while (++index < length) {
|
||||
const array = arrays[index]
|
||||
|
||||
Reference in New Issue
Block a user