mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Use the new operator with the Array constructor.
This commit is contained in:
@@ -21,7 +21,7 @@ function composeArgs(args, partials, holders, isCurried) {
|
||||
let leftIndex = -1
|
||||
let rangeLength = nativeMax(argsLength - holdersLength, 0)
|
||||
|
||||
const result = Array(leftLength + rangeLength)
|
||||
const result = new Array(leftLength + rangeLength)
|
||||
const isUncurried = !isCurried
|
||||
|
||||
while (++leftIndex < leftLength) {
|
||||
|
||||
Reference in New Issue
Block a user