tahamajs's picture
download
raw
641 Bytes
import "../math/abs";
d3.range = function(start, stop, step) {
if (arguments.length < 3) {
step = 1;
if (arguments.length < 2) {
stop = start;
start = 0;
}
}
if ((stop - start) / step === Infinity) throw new Error("infinite range");
var range = [],
k = d3_range_integerScale(abs(step)),
i = -1,
j;
start *= k, stop *= k, step *= k;
if (step < 0) while ((j = start + step * ++i) > stop) range.push(j / k);
else while ((j = start + step * ++i) < stop) range.push(j / k);
return range;
};
function d3_range_integerScale(x) {
var k = 1;
while (x * k % 1) k *= 10;
return k;
}

Xet Storage Details

Size:
641 Bytes
·
Xet hash:
db26ff2fb1da187f2f291556f37e69019cc82b76a1f7ed448a7f8d6fa60ce249

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.