JSFiddle - React, Tailwind, and code Playground
by Cody Lindley
HTML
<script src="https://dl.dropboxusercontent.com/u/2026291/firebug-lite-debug.js"></script>
JavaScript
var isAboveTen = function(element, index, array){ //show all arguments passed
return element >= 10;
};
array1 = [4,43,14,3,14,31,44321];
array2 = [432,43,4321,43,121,314,31,10,31,88];
//is array1 contain all numbers that are equal or above 10
console.log(array1.every(isAboveTen)); //logs false
//is array2 contain all numbers that are equal or above 10
console.log(array2.every(isAboveTen)); //logs true