Skip to content

Instantly share code, notes, and snippets.

@juliobetta
Created October 1, 2017 13:59
Show Gist options
  • Save juliobetta/ad0f13487062f21ed3fe25858abecfae to your computer and use it in GitHub Desktop.
Save juliobetta/ad0f13487062f21ed3fe25858abecfae to your computer and use it in GitHub Desktop.
const withSome = characters.some(character => character.debut < 1990);
const withReduce = characters.reduce((accumulator, character) => {
if(character.debut < 1990) {
return true;
}
return accumulator;
}, false);
// true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment