Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/multiparser/deps.ts>bytes.startsWith

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

Check whether binary array starts with prefix.

Parameters

source: Uint8Array

source array

prefix: Uint8Array

prefix array to check in source

Returns

boolean