What does Array.prototype.some() return?

JavaScript Associate Easy

JavaScript Associate — Easy

What does Array.prototype.some() return?

Key points

  • Array.prototype.some() stops iterating once it finds a match
  • It returns a boolean value indicating whether any element passed the test
  • The method does not return or create a new array
  • It does not count the number of matching elements

Ready to go further?

Related questions