Re: Array.prototype.append ?

2018-05-23 Thread Jordi Bunster
Cool! So for me, the point would be symmetry with Map and Set. As such my poly would go like so: ```js Object.defineProperty(Array.prototype, "append", {     writable: true,     configurable: true,     value: function(arg) {     this.push(arg);     return this;     } }); ``` (Which is

Array.prototype.append ?

2018-05-22 Thread Jordi Bunster
Has anyone ever suggested Array.prototype.append as an Array.prototype.push which returns the array itself? It would be reduce-friendly, same as Set.prototype.add and Map.prototype.set. Someone has to have, right?  ___ es-discuss mailing list