The name of Array.prototype.includes

2015-10-13 Thread Axel Rauschmayer
There are two existing methods that are loosely similar to `Array.prototype.includes()`: 1. `String.prototype.includes()` 2. `Set.prototype.has()` Isn’t #2 more similar than #1? Shouldn’t the method be called `Array.prototype.has`, then? -- Dr. Axel Rauschmayer a...@rauschma.de rauschma.de

RE: The name of Array.prototype.includes

2015-10-13 Thread Domenic Denicola
iscuss@mozilla.org> > Subject: The name of Array.prototype.includes > > There are two existing methods that are loosely similar to > `Array.prototype.includes()`: > > 1. `String.prototype.includes()` > 2. `Set.prototype.has()` > > Isn’t #2 more similar than #1? Shoul