Skip to main content
Deno 2 is finally 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.220.1/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.