source: node_modules/victory-vendor/lib-vendor/d3-interpolate/src/numberArray.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Added visualizations

  • Property mode set to 100644
File size: 461 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = _default;
7exports.isNumberArray = isNumberArray;
8function _default(a, b) {
9 if (!b) b = [];
10 var n = a ? Math.min(b.length, a.length) : 0,
11 c = b.slice(),
12 i;
13 return function (t) {
14 for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
15 return c;
16 };
17}
18function isNumberArray(x) {
19 return ArrayBuffer.isView(x) && !(x instanceof DataView);
20}
Note: See TracBrowser for help on using the repository browser.