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
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
2 matches
Mail list logo