Closed ckknight closed 9 years ago
Currently the set and add methods return undefined, but as per https://people.mozilla.org/~jorendorff/es6-draft.html#sec-this.add-eset.prototype.add-value, this should be returned.
set
add
this
new Set() .add('key') .has('key') === true new Map() .set('key', 'value') .get('key') === 'value'
Fixed and released in v0.19.1
Currently the
set
andadd
methods return undefined, but as per https://people.mozilla.org/~jorendorff/es6-draft.html#sec-this.add-eset.prototype.add-value,this
should be returned.