The name of Array.prototype.includes

# Axel Rauschmayer (9 years ago)

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?

# Domenic Denicola (9 years ago)