UNPKG

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