MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / fromArrayLike

Function fromArrayLike

misc/test-browser/mocha.js:8898–8905  ·  view source on GitHub ↗
(that, array)

Source from the content-addressed store, hash-verified

8896 }
8897
8898 function fromArrayLike (that, array) {
8899 var length = array.length < 0 ? 0 : checked(array.length) | 0;
8900 that = createBuffer(that, length);
8901 for (var i = 0; i < length; i += 1) {
8902 that[i] = array[i] & 255;
8903 }
8904 return that
8905 }
8906
8907 function fromArrayBuffer (that, array, byteOffset, length) {
8908 array.byteLength; // this throws if `array` is not a valid ArrayBuffer

Callers 2

fromArrayBufferFunction · 0.85
fromObjectFunction · 0.85

Calls 2

checkedFunction · 0.85
createBufferFunction · 0.85

Tested by

no test coverage detected