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://dotland.deno.dev/x/ts_morph@17.0.1/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