MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / fromArrayLike

Function fromArrayLike

lib/sanitize-html.js:839–846  ·  view source on GitHub ↗
(that, array)

Source from the content-addressed store, hash-verified

837}
838
839function fromArrayLike (that, array) {
840 var length = array.length < 0 ? 0 : checked(array.length) | 0
841 that = createBuffer(that, length)
842 for (var i = 0; i < length; i += 1) {
843 that[i] = array[i] & 255
844 }
845 return that
846}
847
848function fromArrayBuffer (that, array, byteOffset, length) {
849 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