Skip to main content
Module

std/bytes/mod.ts>hasSuffix

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function hasSuffix
import { hasSuffix } from "https://deno.land/std@v0.56.0/bytes/mod.ts";

Check whether binary array ends with suffix.

Parameters

source: Uint8Array

srouce array

suffix: Uint8Array

suffix array to check in source

Returns

boolean