Module

std/bytes/mod.ts>startsWith

Deno standard library
Go to Latest
function startsWith
import { startsWith } from "https://dotland.deno.dev/std@0.131.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