Skip to main content
Module

std/bytes/mod.ts>startsWith

Deno standard library
Go to Latest
function startsWith
import { startsWith } from "https://deno.land/std@0.113.0/bytes/mod.ts";

Check whether binary array starts with prefix.

Parameters

source: Uint8Array

source array

prefix: Uint8Array

prefix array to check in source

Returns

boolean