UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

8 lines 332 B
/** * Decodes a Uint8Array or ArrayBuffer as a UTF-8 string. * @param {ArrayBuffer|Uint8Array} data - The data to decode. * @returns {string} The decoded string. * @throws {Error} If no decoder is available. */ export default function utf8Decode(data: ArrayBuffer | Uint8Array): string; //# sourceMappingURL=utf8Decode.d.ts.map