r/javascript • u/smellycode • Mar 02 '19
Useful javascript one-liners.
https://medium.com/@smellycode/js-one-liners-8bc0a6af2345?source=friends_link&sk=a9295a05aef9e514e137fca7eeb89cd1
344
Upvotes
r/javascript • u/smellycode • Mar 02 '19
5
u/smellycode Mar 02 '19
You are right. This is not a one-liners. I added it to complete the `flatten` with any level. Prolly I should add one line which tells it's not one liner.
Adding curly braces to line break is personal preference. :)