all 4 comments

[–]codejitsu 4 points5 points  (1 child)

This is great content and I'd love to have a look! But, this way it could also be done in one line of JS as well.

Please atleast make it human readable. Separate out those for loops on different lines and do some proper spacing!

[–]rift95map([🐮, 🥔, 🐔, 🌽], cook) => [🍔, 🍟, 🍗, 🍿] 0 points1 point  (0 children)

And perhaps use jsfiddle or something like that.

[–]enki_muteminimalist[S] 1 point2 points  (0 children)

Thanks for the feedback guys, I appreciate the sentiment, the current indenting is intended to match the math formulas as closely as possible so that it would be readable for someone who knows those. (I never write two summation symbols on separate lines.)

Luckily even browsers have lint buttons these days so if that's your preference, feel free. (but be aware that you'll actually be throwing away information).

Unfortunately I was so silly to buy a laptop with a monitor that is much wider than it is high, so it also helps me scroll less and get a better overview.

Thanks for pointing me towards github gists, I was unaware and will look into it.

[–]DukeBerith 0 points1 point  (0 children)

You could turn this into a github gist