@polkadot/util
Version:
A collection of useful utilities for @polkadot
16 lines (15 loc) • 424 B
TypeScript
/**
* @name u8aEq
* @summary Compares two Uint8Arrays for equality.
* @description
* For `UInt8Array` (or hex string) input values true if there is a match.
* @example
* <BR>
*
* ```javascript
* import { u8aEq } from '@polkadot/util';
*
* u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true
* ```
*/
export declare function u8aEq(a: string | Uint8Array, b: string | Uint8Array): boolean;