Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aleph/std.ts>bytes.equal

The Full-stack Framework in Deno.
Go to Latest
function bytes.equal
import { bytes } from "https://deno.land/x/aleph@v0.2.27/std.ts";
const { equal } = bytes;

Check whether binary arrays are equal to each other.

Parameters

source: Uint8Array

first array to check equality

match: Uint8Array

second array to check equality

Returns

boolean