Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/classes/NumberMap.ts>NumberMap

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
class NumberMap
extends Map<number, Generic>
import { NumberMap } from "https://deno.land/x/docxml@5.11.0/src/classes/NumberMap.ts";

A special kind of map that makes it easy to store items by a number, automatically ensuring that these identifiers increment and don't collide.

Constructors

new
NumberMap(start?)

Methods

add(data: Generic): number

Add new data to the map, and return the new unique key.

array(): Array<Generic>

Get all values in an array.