What does Array.prototype.every() return?

JavaScript Associate Easy

JavaScript Associate — Easy

What does Array.prototype.every() return?

Key points

  • The method stops as soon as it finds an element that fails the condition.
  • It does not check the rest of the elements once a failure occurs.
  • The return value is a boolean, not an array of boolean results.

Ready to go further?

Related questions