Skip to main content
Module

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

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

Uses binary search to quickly check if the element is the array.

Parameters

element: ItemType

the element to check

Returns

boolean

whether the element is in the array