UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

18 lines (15 loc) 413 B
function numberArray(a, b) { if (!b) b = []; var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i; return function(t) { for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t; return c; }; } function isNumberArray(x) { return ArrayBuffer.isView(x) && !(x instanceof DataView); } export { numberArray as default, isNumberArray }; //# sourceMappingURL=numberArray.js.map