Skip to main content
Module

std/bytes/mod.ts>findIndex

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

Find first index of binary pattern from a. If not found, then return -1 *

Parameters

a: Uint8Array
pat: Uint8Array

Returns

number