Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

compare

import { compare } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts";

Compares two byte arrays.

compare(
  new Uint8Array([104, 101, 108, 108, 111]),
  new TextEncoder().encode("hello")
);
// true
function compare(a: Uint8Array, b: Uint8Array): boolean;
§
compare(a: Uint8Array, b: Uint8Array): boolean
[src]

§Parameters

§
a: Uint8Array
[src]
§
b: Uint8Array
[src]

§Return Type

§
boolean
[src]