tahamajs's picture
download
raw
346 Bytes
import "../math/number";
d3.sum = function(array, f) {
var s = 0,
n = array.length,
a,
i = -1;
if (arguments.length === 1) {
while (++i < n) if (d3_numeric(a = +array[i])) s += a; // zero and null are equivalent
} else {
while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a;
}
return s;
};

Xet Storage Details

Size:
346 Bytes
·
Xet hash:
84bb33805328c16e43c2d07059f542eb489e9d70644ee7ae3364c9b83ebf78e2

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