Skip to content

0.1.0

Latest
Compare
Choose a tag to compare
@babiabeo babiabeo released this 28 Apr 15:01
· 11 commits to main since this release

This package provides implementations of Map.prototype.emplace and WeakMap.prototype.emplace which have been proposed in https://github.com/tc39/proposal-upsert.

Functions

  • emplaceMap: Inserts a new value or updates an existing value from a Map.
  • emplaceWeakMap: Inserts a new value or updates an existing value from a WeakMap.