Created
December 21, 2018 17:23
-
-
Save chris-sev/3d36b27c382fb250dc6e37bed29375b0 to your computer and use it in GitHub Desktop.
First Number Under 50
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 numbers = [60, 32, 55, 22, 10]; | |
const lessThan50 = numbers.find(number => number < 50 ); | |
console.log(lessThan50); | |
// output: 32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment