Created
October 1, 2017 13:59
-
-
Save juliobetta/ad0f13487062f21ed3fe25858abecfae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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