Skip to content

Instantly share code, notes, and snippets.

@master5o1 master5o1/fizzbuzz es6
Last active Aug 20, 2019

Embed
What would you like to do?
Displays FizzBuzz without containing the string "Fizz" or "Buzz". Reads the source and extracts the characters from the destructured function parameters. https://jsfiddle.net/master5o1/8ekog4j9/
const GO=( F,i,z,{[z[0 ]]:B},u, zz)=>B((F% u?'':GO[z [u/ u]] ()[z[zz- zz/zz]](u-
u,u **u +zz -zz )[z [u] ](z [zz ],'' )[
z[/* **/ zz- u/u] ](u -u, zz- u/u ))+ (F%
zz?'':GO[z [u/ u]] ()[ z[zz-zz/ zz] ](u -u,u **u
+zz -zz )[z [u] ](z [zz ],'' )[z [zz -u/
u]] (zz -u/ u)) ||F )|| F< zz** u-u **u
+zz -u?GO(F+1,i ,z,i[z[u- zz/zz]],u ,zz):null ;//)[z[z z-u/u]])[ z[zz-u/u]
GO(1,this,['log', 'toString', 'console', 'replace', 'substring', /[^a-z]/gi],console,3,5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.