Skip to main content
Module

x/structurae/sorted-array.ts>SortedArray#indexOf

Data structures for high-performance JavaScript applications.
Latest
method SortedArray.prototype.indexOf
import { SortedArray } from "https://deno.land/x/structurae@4.0.1/sorted-array.ts";

Looks for the index of a given element in the array or -1

Parameters

element: ItemType

the element to look for

Returns

number

the element's index in the array or -1