Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/bytes/equals.ts>equals

Deno standard library
Go to Latest
function equals
import { equals } from "https://deno.land/std@0.176.0/bytes/equals.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