Skip to main content
Module

x/texa/mod.ts>ReadonlyMap

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
class ReadonlyMap
Re-export
import { ReadonlyMap } from "https://deno.land/x/texa@0.8.1/mod.ts";

A readonly map.

Constructors

new
ReadonlyMap(map: Map<K, V>)

Initiate a new readonly map.

Properties

private
readonly
__map: Map<K, V>

The private map.

readonly
size: number

Get the size of the read only map.

Methods

entries(): IterableIterator<readonly [K, V]>

Get the entries stored in the readonly map.

forEach(cb: (
value: V,
key: K,
source: this,
) => void
): this

Iterate over every entry in the map.

get(key: K): V | void

Get a value from the read only map.

has(key: K): boolean

Check if key exists in the read only map.

keys(): IterableIterator<K>

Get the keys stored in the readonly map.

values(): IterableIterator<V>

Get the values stored in the readonly map.