You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -65,7 +65,7 @@ function CircularBuffer( buffer ) {
65
65
for(i=0;i<buffer;i++){
66
66
this._buffer.push(0.0);// initialize with zeros, but could be any value (we're just ensuring a contiguous block of memory)
67
67
}
68
-
}elseif(isArrayLikeObject(buffer)){
68
+
}elseif(isCollection(buffer)){
69
69
this._buffer=buffer;
70
70
}else{
71
71
thrownewTypeError('invalid input argument. Must provide either a valid buffer size (positive integer) or an array-like object which can serve as the underlying buffer. Value: `'+buffer+'`.');
0 commit comments