Skip to content

Instantly share code, notes, and snippets.

@ryu1-1uyr
Created June 4, 2018 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryu1-1uyr/7cea5f1a73ad7ca1063e1158db8b075d to your computer and use it in GitHub Desktop.
Save ryu1-1uyr/7cea5f1a73ad7ca1063e1158db8b075d to your computer and use it in GitHub Desktop.
0604の授業の成果です filter mapとか
[...Array(31).keys()].filter(x => x > 0).map(y => y%3==0 ? y%5 ==0?"FizzBuzz":"Fizz":y%5==0?"Buzz":y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment