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