What does the every() array method return?
- A A new array of matching elements
- B true if all elements satisfy the condition
- C The first matching element
- D The number of matching elements
Answer
true if all elements satisfy the condition
every returns a boolean and short-circuits on the first failure. On an empty array it returns true, which occasionally surprises people.





