Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test multiple booleans
const tests = [true, false, true]
const finalTest = tests.reduce((acc, val) => {
return acc && val
}, true);
console.log(finalTest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment