Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ Using String.fromCharCode(...array) is again shorter: (...a)=>String.fromCharCode(...[...Array(24)].map((_,i)=>i+(i>16)+913+32*!!a.length)) \$\endgroup\$ Commented Oct 22, 2016 at 15:27
  • 1
    \$\begingroup\$ And since String.fromCharCode floors, you can save another two bytes like so: (...a)=>String.fromCharCode(...[...Array(24)].map((_,i)=>i*1.06+913+32*!!a.length)) \$\endgroup\$ Commented Oct 22, 2016 at 15:29
  • \$\begingroup\$ @ETHproductions I can't believe I forgot to use String.fromCharCode(...) but I like that i*1.06 trick! Sadly comprehensions are a byte longer this time as far as I can tell. \$\endgroup\$ Commented Oct 22, 2016 at 16:48
  • \$\begingroup\$ I managed to get it down to (...a)=>String.fromCharCode(...[for(_ of Array(i=24))i++*42/41+889+32*!!a.length]) (82). \$\endgroup\$ Commented Oct 22, 2016 at 17:16
  • \$\begingroup\$ You can remove the !!, as there will only be zero or one args. \$\endgroup\$ Commented Oct 22, 2016 at 19:43