ktongue's picture
download
raw
540 Bytes
import value from "./value.js";
import numberArray, {isNumberArray} from "./numberArray.js";
export default function(a, b) {
return (isNumberArray(b) ? numberArray : genericArray)(a, b);
}
export function genericArray(a, b) {
var nb = b ? b.length : 0,
na = a ? Math.min(nb, a.length) : 0,
x = new Array(na),
c = new Array(nb),
i;
for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);
for (; i < nb; ++i) c[i] = b[i];
return function(t) {
for (i = 0; i < na; ++i) c[i] = x[i](t);
return c;
};
}

Xet Storage Details

Size:
540 Bytes
·
Xet hash:
e0a3cfa222cdc19e7a2b3ab748f75cca30b61325164b3b142505fd72feb5c0f1

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