Module

std/bytes/mod.ts>hasSuffix

Deno standard library
Go to Latest
function hasSuffix
import { hasSuffix } from "https://dotland.deno.dev/std@0.79.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