Skip to main content
Module

x/upsert/mod.ts

Maps for emplace, TC39 proposal-upsert implementation
Latest
import * as upsert from "https://deno.land/x/upsert@1.2.0/mod.ts";

Maps for emplace, TC39 proposal-upsert implementation.

Classes

Map with Emplaceable implementation.

WeakMap with Emplaceable implementation.

Variables

v
Emplaceable
deprecated

Mixin for emplace.

Functions

Add a value to a map if it does not already have something at key, and will also update an existing value at key.

Mixin for emplace.

Add the entry if the key does not exist.

Update the entry if the key exists.

Interfaces

Emplaceable API.

Handler for emplace.

Insertable API.

Map like API.

Updatable API.