MCPcopy Create free account
hub / github.com/RubyLouvre/anu / fromArrayLike

Function fromArrayLike

test/babel.js:45941–45948  ·  view source on GitHub ↗
(that, array)

Source from the content-addressed store, hash-verified

45939 }
45940
45941 function fromArrayLike(that, array) {
45942 var length = array.length < 0 ? 0 : checked(array.length) | 0;
45943 that = createBuffer(that, length);
45944 for (var i = 0; i < length; i += 1) {
45945 that[i] = array[i] & 255;
45946 }
45947 return that;
45948 }
45949
45950 function fromArrayBuffer(that, array, byteOffset, length) {
45951 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