Skip to main content
Module

x/tui/mod.ts>SortedArray

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
class SortedArray
extends Array<T>
Re-export
import { SortedArray } from "https://deno.land/x/tui@2.1.4/mod.ts";

Creates array that automatically sorts elements using compareFn Additionally allows for removing elements

Constructors

new
SortedArray(compareFn?: CompareFn<T>, ...items: T[])

Type Parameters

optional
T = unknown

Properties

optional
compareFn: CompareFn<T>

Methods

push(...items: T[]): number
remove(...items: T[]): number