00001 /* Built-in method references for those with the same name as other `lodash` methods. */ 00002 var nativeCeil = Math.ceil, 00003 nativeMax = Math.max; 00004 00016 function baseRange(start, end, step, fromRight) { 00017 var index = -1, 00018 length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), 00019 result = Array(length); 00020 00021 while (length--) { 00022 result[fromRight ? length : ++index] = start; 00023 start += step; 00024 } 00025 return result; 00026 } 00027 00028 module.exports = baseRange;