mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 05:38:03 +00:00
16 lines
423 B
TypeScript
16 lines
423 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 '@pezkuwi/util';
|
|
*
|
|
* u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true
|
|
* ```
|
|
*/
|
|
export declare function u8aEq(a: string | Uint8Array, b: string | Uint8Array): boolean;
|