What does `Array.prototype.some()` return?

JavaScript Developer Easy

JavaScript Developer — Easy

What does `Array.prototype.some()` return?

Key points

  • The method returns a boolean value, not an array of elements.
  • It stops iterating once a passing element is found.
  • If no elements pass the test, it returns false.

Ready to go further?

Related questions