MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / arraytostring

Function arraytostring

test/test_bigint64array_polyfill.js:61–63  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

59result.arr2_subarray = Array.from(arr2.subarray(1, 5));
60let reducer = (k, v) => typeof v === 'bigint' ? v.toString() + 'n' : v;
61function arraytostring(arr){
62 return JSON.stringify(Array.from(Array.from(arr)), reducer);
63}
64
65let sub = arr2.subarray(1, 5);
66assertEqual(() => [sub.byteOffset, 8]);

Callers 1

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected