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

std/bytes/mod.ts>equals

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function equals
import { equals } from "https://deno.land/std@0.190.0/bytes/mod.ts";

Check whether binary arrays are equal to each other.

Parameters

a: Uint8Array

first array to check equality

b: Uint8Array

second array to check equality

Returns

boolean