Skip to main content
Module

x/aleph/std.ts>bytes.hasPrefix

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function bytes.hasPrefix
import { bytes } from "https://deno.land/x/aleph@v0.2.28/std.ts";
const { hasPrefix } = bytes;

Check whether binary array starts with prefix.

Parameters

source: Uint8Array

srouce array

prefix: Uint8Array

prefix array to check in source

Returns

boolean