Comparing version 1.0.1 to 1.0.2
@@ -11,2 +11,5 @@ /** | ||
var self = this; | ||
if (self.size == 0) { | ||
return this.add(new Map([[key, value]])); | ||
} | ||
if (Array.from(self.last()).pop().has(key)) { | ||
@@ -13,0 +16,0 @@ return this.add(new Map([[key, value]])); |
{ | ||
"name": "le-map-e", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Some es6 Map() functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,3 +39,3 @@ /** | ||
it('should add element to the set', function (done) { | ||
var a = new Set([new Map([['a', 'b']])]); | ||
var a = new Set(); | ||
a.deepMapAppendOrNew(3, 4).deepMapAppendOrNew(5, 7).deepMapAppendOrNew(5, 9); | ||
@@ -42,0 +42,0 @@ a.should.deep.equal(new Set([new Map([['a', 'b'], [3, 4], [5, 7]], new Map([[5, 9]]))])); |
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
27258
169