Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/common/mod.ts>SortedKeyValueArray

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class SortedKeyValueArray
import { SortedKeyValueArray } from "https://deno.land/x/ts_morph@18.0.0/common/mod.ts";

An array where the values are sorted by a key of one of the values.

Constructors

new
SortedKeyValueArray(getKey: (value: TValue) => TKey, comparer: Comparer<TKey>)

Type Parameters

TKey
TValue

Properties

private
readonly
array
private
readonly
comparer
private
readonly
getKey

Methods

entries(): Generator<TValue, void, undefined>
hasItems(): boolean
removeByKey(key: TKey): void
removeByValue(value: TValue): void
set(value: TValue): void