Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,6 +1,6 @@
/* Built-in method references for those with the same name as other `lodash` methods. */
const nativeCeil = Math.ceil;
const nativeMax = Math.max;
const nativeCeil = Math.ceil
const nativeMax = Math.max
/**
* The base implementation of `range` and `rangeRight` which doesn't
@@ -14,15 +14,15 @@ const nativeMax = Math.max;
* @returns {Array} Returns the range of numbers.
*/
function baseRange(start, end, step, fromRight) {
let index = -1;
let length = nativeMax(nativeCeil((end - start) / (step || 1)), 0);
const result = Array(length);
let index = -1
let length = nativeMax(nativeCeil((end - start) / (step || 1)), 0)
const result = Array(length)
while (length--) {
result[fromRight ? length : ++index] = start;
start += step;
result[fromRight ? length : ++index] = start
start += step
}
return result;
return result
}
export default baseRange;
export default baseRange