Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/multiparser/deps.ts>bytes.endsWith

multipart/form-data parser for Deno servers
Latest
function bytes.endsWith
import { bytes } from "https://deno.land/x/multiparser@0.114.0/deps.ts";
const { endsWith } = bytes;

Check whether binary array ends with suffix.

Parameters

source: Uint8Array

source array

suffix: Uint8Array

suffix array to check in source

Returns

boolean