Skip to main content
Module

std/bytes/mod.ts>hasSuffix

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