MCPcopy
hub / github.com/ampproject/amphtml / uint8Array

Function uint8Array

test/unit/test-crypto.js:19–25  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

17 });
18
19 function uint8Array(array) {
20 const uint8Array = new Uint8Array(array.length);
21 for (let i = 0; i < array.length; i++) {
22 uint8Array[i] = array[i];
23 }
24 return uint8Array;
25 }
26
27 function testSuite(description, win, expectedError) {
28 describe(description, () => {

Callers 2

testSuiteFunction · 0.85
test-crypto.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected