Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // An example of using Array.every().
- const arr = [1, 2, 3, 4, 5]
- let result = arr.every(function(el) { return el > 0 })
- let otherResult = arr.every(function(el) { return el > 3 })
- console.log(result) // → true
- console.log(otherResult) // → false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement