Skip to main content
Module

std/bytes/mod.ts>findIndex

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function findIndex
import { findIndex } from "https://deno.land/std@v0.56.0/bytes/mod.ts";

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

Parameters

source: Uint8Array

soruce array

pat: Uint8Array

pattern to find in source array

Returns

number