UNPKG

es-map

Version:

An ES-spec-compliant Map shim/polyfill/replacement that works as far down as ES3

17 lines (12 loc) 286 B
'use strict'; var MapEntry = function MapEntry(key, value) { this.key = key; this.value = value; this.next = null; this.prev = null; }; MapEntry.empty = {}; MapEntry.prototype.isRemoved = function isRemoved() { return this.key === MapEntry.empty; }; module.exports = MapEntry;