Comparing version
'use strict'; | ||
module.exports = (function () { | ||
function _Map(key, value) { | ||
return new Map([[key, value]]); | ||
} | ||
Map.prototype.setOrPush = function (key, value) { | ||
@@ -4,0 +9,0 @@ if (this.has(key)) { |
@@ -9,2 +9,7 @@ /** | ||
module.exports = (function () { | ||
function _Set(value) { | ||
return new Set([value]); | ||
} | ||
Set.prototype.deepMapAppendOrNew = function (key, value) { | ||
@@ -11,0 +16,0 @@ var self = this; |
{ | ||
"name": "le-map-e", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Some es6 Map() functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27918
2.42%175
3.55%