MCPcopy Index your code
hub / github.com/TruthHun/BookStack / fromArrayLike

Function fromArrayLike

static/word2md/mammoth.browser.js:9935–9942  ·  view source on GitHub ↗
(that, array)

Source from the content-addressed store, hash-verified

9933}
9934
9935function fromArrayLike (that, array) {
9936 var length = array.length < 0 ? 0 : checked(array.length) | 0
9937 that = createBuffer(that, length)
9938 for (var i = 0; i < length; i += 1) {
9939 that[i] = array[i] & 255
9940 }
9941 return that
9942}
9943
9944function fromArrayBuffer (that, array, byteOffset, length) {
9945 array.byteLength // this throws if `array` is not a valid ArrayBuffer

Callers 2

fromArrayBufferFunction · 0.70
fromObjectFunction · 0.70

Calls 2

checkedFunction · 0.70
createBufferFunction · 0.70

Tested by

no test coverage detected