Module

std/bytes/mod.ts>endsWith

Deno standard library
Go to Latest
function endsWith
import { endsWith } from "https://dotland.deno.dev/std@0.116.0/bytes/mod.ts";

Check whether binary array ends with suffix.

Parameters

source: Uint8Array

source array

suffix: Uint8Array

suffix array to check in source

Returns

boolean