diff --git a/.internal/compareMultiple.js b/.internal/compareMultiple.js index b29b905c5..0d9fc2d87 100644 --- a/.internal/compareMultiple.js +++ b/.internal/compareMultiple.js @@ -22,9 +22,9 @@ function compareMultiple(object, other, orders) { const ordersLength = orders.length while (++index < length) { - var order = index < ordersLength ? orders[index] : null - var cmpFn = (order && typeof order === 'function') ? order: compareAscending - var result = cmpFn(objCriteria[index], othCriteria[index]) + const order = index < ordersLength ? orders[index] : null + const cmpFn = (order && typeof order === 'function') ? order: compareAscending + const result = cmpFn(objCriteria[index], othCriteria[index]) if (result) { if (order && typeof order !== 'function') { return result * (order == 'desc' ? -1 : 1) diff --git a/uniqueId.js b/uniqueId.js index c8072dbc0..0c7022ea2 100644 --- a/uniqueId.js +++ b/uniqueId.js @@ -1,5 +1,5 @@ /** Used to generate unique IDs. */ -let idCounter = {} +const idCounter = {} /** * Generates a unique ID. If `prefix` is given, the ID is appended to it. @@ -18,12 +18,12 @@ let idCounter = {} * // => '105' */ function uniqueId(prefix='$lodash$') { - if(!idCounter[prefix]){ + if (!idCounter[prefix]) { idCounter[prefix] = 0 } const id =++idCounter[prefix] - if(prefix === '$lodash$') { + if (prefix === '$lodash$') { return `${id}` }