Use the new operator with the Array constructor.

This commit is contained in:
John-David Dalton
2017-03-07 22:07:04 -08:00
parent 9260bd2f57
commit 5f2a03076d
16 changed files with 16 additions and 16 deletions

View File

@@ -21,7 +21,7 @@ function composeArgsRight(args, partials, holders, isCurried) {
const holdersLength = holders.length
const rightLength = partials.length
const rangeLength = nativeMax(argsLength - holdersLength, 0)
const result = Array(rangeLength + rightLength)
const result = new Array(rangeLength + rightLength)
const isUncurried = !isCurried
while (++argsIndex < rangeLength) {