Skip to main content
Module

x/aleph/std.ts>bytes.hasSuffix

The Full-stack Framework in Deno.
Go to Latest
function bytes.hasSuffix
import { bytes } from "https://deno.land/x/aleph@v0.2.27/std.ts";
const { hasSuffix } = bytes;

Check whether binary array ends with suffix.

Parameters

source: Uint8Array

source array

suffix: Uint8Array

suffix array to check in source

Returns

boolean