Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/bytes/index_of_needle.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.214.0/bytes/index_of_needle.ts";

Functions

Returns the index of the first occurrence of the needle array in the source array, or -1 if it is not present.