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 :)
And to be perfectly honest, I might have goofed the for loop.
You did, the commas must be semicolons :)
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.
Ok… it’s Footgun prone and callback hell is real.
But I still try to obtain that in other more boring language.