UNPKG

424 BTypeScriptView Raw
1/**
2 * @name u8aEq
3 * @summary Compares two Uint8Arrays for equality.
4 * @description
5 * For `UInt8Array` (or hex string) input values true if there is a match.
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { u8aEq } from '@polkadot/util';
11 *
12 * u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true
13 * ```
14 */
15export declare function u8aEq(a: string | Uint8Array, b: string | Uint8Array): boolean;