Skip to content

Instantly share code, notes, and snippets.

@chris-sev
Created December 21, 2018 17:23
Show Gist options
  • Save chris-sev/3d36b27c382fb250dc6e37bed29375b0 to your computer and use it in GitHub Desktop.
Save chris-sev/3d36b27c382fb250dc6e37bed29375b0 to your computer and use it in GitHub Desktop.
First Number Under 50
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