Skip to content

Instantly share code, notes, and snippets.

@ryu1-1uyr
Created May 28, 2018 08:19
Show Gist options
  • Save ryu1-1uyr/ac52c3514d7b0d3dc99ed1c210949c64 to your computer and use it in GitHub Desktop.
Save ryu1-1uyr/ac52c3514d7b0d3dc99ed1c210949c64 to your computer and use it in GitHub Desktop.
そのうちけす。
const ごじゅうまでのはいれつ = [...Array(51).keys()];
const たんまつにひょうじ = console.log;
const ぜろぬかす = f=>(f>0);
const ふぃずばずする = x => x % 3 ===0 ? x%5 ===0?"ふぃずばず":"ふぃず":x%5 ===0?"ばず":x;
ごじゅうまでのはいれつ.filter(ぜろぬかす).forEach((i)=>たんまつにひょうじ(ふぃずばずする(i)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment