import { bytes } from "https://deno.land/x/discord_rpc_deno@v1.1.4/deps.ts";
const { equals } = bytes;
Check whether byte slices are equal to each other.
Examples
Basic usage
Basic usage
import { equals } from "https://deno.land/std@0.224.0/bytes/equals.ts";
const a = new Uint8Array([1, 2, 3]);
const b = new Uint8Array([1, 2, 3]);
const c = new Uint8Array([4, 5, 6]);
equals(a, b); // true
equals(b, c); // false