UNPKG

@polkadot/util

Version:
8 lines (7 loc) 238 B
/** * @name isUtf8 * @summary Tests if the input is valid Utf8 * @description * Checks to see if the input string or Uint8Array is valid Utf8 */ export declare function isUtf8(value?: number[] | Uint8Array | string | null): boolean;