MCPcopy Index your code
hub / github.com/plotly/plotly.js / fromArrayLike

Function fromArrayLike

stackgl_modules/index.js:242–249  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

240 return buf;
241}
242function fromArrayLike(array) {
243 var length = array.length < 0 ? 0 : checked(array.length) | 0;
244 var buf = createBuffer(length);
245 for (var i = 0; i < length; i += 1) {
246 buf[i] = array[i] & 255;
247 }
248 return buf;
249}
250function fromArrayView(arrayView) {
251 if (isInstance(arrayView, Uint8Array)) {
252 var copy = new Uint8Array(arrayView);

Callers 2

fromArrayViewFunction · 0.85
fromObjectFunction · 0.85

Calls 2

checkedFunction · 0.85
createBufferFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…