Skip to main content
Module

std/bytes/mod.ts>endsWith

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