Skip to content

Instantly share code, notes, and snippets.

@zeptobook
Created December 30, 2018 01:57
Show Gist options
  • Save zeptobook/6a44eada6c5682bec94a11bcc5d6270d to your computer and use it in GitHub Desktop.
Save zeptobook/6a44eada6c5682bec94a11bcc5d6270d to your computer and use it in GitHub Desktop.
array.every()
var nums = [10, 20, 30, 40, 50];
var Allover30 = nums.every(function(value){
return value > 30;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment