Skip to content

Instantly share code, notes, and snippets.

@kmylo
Created October 18, 2021 05:05
Show Gist options
  • Save kmylo/778efa46d1bae1b731670997bcfee661 to your computer and use it in GitHub Desktop.
Save kmylo/778efa46d1bae1b731670997bcfee661 to your computer and use it in GitHub Desktop.
conditions array
let condition1 = 13 ==='13';
let condition2 = 1 === 1
let condition3 = {} ==={};
let condArray = [
condition1, condition2
]
if(!condArray.includes(false)){
console.log('all false')
}
// ES7
if(condArray.includes(true)){
console.log('all true')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment