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