Skip to main content
Module

x/readline/deps.ts>indexOf

Readline implementation for Deno
Latest
function indexOf
import { indexOf } from "https://deno.land/x/readline@v1.1.0/deps.ts";

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

Parameters

source: Uint8Array

source array

pat: Uint8Array

pattern to find in source array

optional
start = [UNSUPPORTED]

the index to start looking in the source

Returns

number