Skip to main content
Module

std/bytes/mod.ts>equal

Deno standard library
Go to Latest
function equal
import { equal } from "https://deno.land/std@0.75.0/bytes/mod.ts";

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