3 ms·
The javascript array functions and arrow functions are a gift from heaven. And to be perfectly honest, I might have goofed the for loop. You did, the commas m
by jansan 4y ago
The javascript array functions and arrow functions are a gift from heaven.
And to be perfectly honest, I might have goofed the for loop.
You did, the commas must be semicolons :)
- mikercampbell 4y agoFunctional JavaScript has saved me so much. And I'm not talkin Ramda, just functional principles. I can't tell you how much time I spent chasing a bug when it was a date that was passed by reference. Rather than trying to keep track, I just return copies of arrays and objects and it's way easier. Even a simple ``` function yeppers(input) => ({...input, x: 7}) ``` (An overly simple example) has made things smoother.
- dopidopHN 4y agoI miss that ability to just pass whatever around easily in JS. Ok… it’s Footgun prone and callback hell is real. But I still try to obtain that in other more boring language.