mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMax = Math.max;
|
||||
const nativeMax = Math.max;
|
||||
|
||||
/**
|
||||
* Creates an array that is the composition of partially applied arguments,
|
||||
@@ -13,14 +13,16 @@ var nativeMax = Math.max;
|
||||
* @returns {Array} Returns the new array of composed arguments.
|
||||
*/
|
||||
function composeArgs(args, partials, holders, isCurried) {
|
||||
var argsIndex = -1,
|
||||
argsLength = args.length,
|
||||
holdersLength = holders.length,
|
||||
leftIndex = -1,
|
||||
leftLength = partials.length,
|
||||
rangeLength = nativeMax(argsLength - holdersLength, 0),
|
||||
result = Array(leftLength + rangeLength),
|
||||
isUncurried = !isCurried;
|
||||
const argsLength = args.length;
|
||||
const holdersLength = holders.length;
|
||||
const leftLength = partials.length;
|
||||
|
||||
let argsIndex = -1;
|
||||
let leftIndex = -1;
|
||||
let rangeLength = nativeMax(argsLength - holdersLength, 0);
|
||||
|
||||
const result = Array(leftLength + rangeLength);
|
||||
const isUncurried = !isCurried;
|
||||
|
||||
while (++leftIndex < leftLength) {
|
||||
result[leftIndex] = partials[leftIndex];
|
||||
|
||||
Reference in New Issue
Block a user