Skip to main content
Module

std/bytes/equals.ts>equalsNaive

Deno standard library
Go to Latest
function equalsNaive
import { equalsNaive } from "https://deno.land/std@0.147.0/bytes/equals.ts";

Check whether binary arrays are equal to each other using 8-bit comparisons.

Parameters

a: Uint8Array

first array to check equality

b: Uint8Array

second array to check equality

Returns

boolean