| module.exports = function newArray(start, end) { | |
| var n0 = typeof start === 'number', | |
| n1 = typeof end === 'number' | |
| if (n0 && !n1) { | |
| end = start | |
| start = 0 | |
| } else if (!n0 && !n1) { | |
| start = 0 | |
| end = 0 | |
| } | |
| start = start|0 | |
| end = end|0 | |
| var len = end-start | |
| if (len<0) | |
| throw new Error('array length must be positive') | |
| var a = new Array(len) | |
| for (var i=0, c=start; i<len; i++, c++) | |
| a[i] = c | |
| return a | |
| } |
Xet Storage Details
- Size:
- 496 Bytes
- Xet hash:
- fcd29cc8add5a9dafefcfe92fbf46f0846d5b5edfe9bbc1d126a14faeaab6c07
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.