Skip to main content
Module

std/bytes/mod.ts>hasPrefix

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

Check whether binary array has binary prefix *

Parameters

a: Uint8Array
prefix: Uint8Array

Returns

boolean