Created
October 2, 2018 12:25
-
-
Save heryvandoro/70cb24c20d3ad4fa120cfdfb56d60c49 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let numbers = [1,3,4,2]; | |
let evenNumber = numbers.find(number => { | |
return number % 2 == 0; | |
}); | |
console.log(evenNumber); | |
/* Output : | |
4 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment