We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ce3d2 commit 942f92fCopy full SHA for 942f92f
1 file changed
src/traces/streamtube/calc.js
@@ -206,6 +206,9 @@ function distinctVals(col) {
206
function filter(arr, len) {
207
if(len === undefined) len = arr.length;
208
209
+ // no need for casting typed arrays to numbers
210
+ if(Lib.isTypedArray(arr)) return arr.slice(0, len);
211
+
212
var values = [];
213
for(var i = 0; i < len; i++) {
214
values[i] = +arr[i];
0 commit comments