Skip to content

Commit 48923fa

Browse files
committed
Update docstring for helper fun toArrayBuffer
1 parent cac7022 commit 48923fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setupTests.js

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ Object.defineProperty(window, 'location', {
5252
writable: true,
5353
});
5454

55+
/** Converts an object's binary to an arrayBuffer, useful when we
56+
* later want to convert it to a base 64 ascii string
57+
*/
5558
function toArrayBuffer(buffer) {
5659
const arrayBuffer = new ArrayBuffer(buffer.length);
5760
const view = new Uint8Array(arrayBuffer);

0 commit comments

Comments
 (0)