5 lines
167 B
TypeScript
5 lines
167 B
TypeScript
import { TextDecoder } from "util";
|
|
|
|
export async function arrbufToStr(arrayBuffer : ArrayBuffer) {
|
|
return new TextDecoder().decode(new Uint8Array(arrayBuffer));
|
|
} |