
My first time purposely, intently, and actually using a JS arrow function, and boy, was it nifty 🙂 .
Don’t know what it is? Basically, stop thing of sending in to a function, start thinking:
I have this thing (probably an item esp. for array functions); I want to send it here and this side will transform it.
Yeah, that’s a little too simplified.
Check it out: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions .
Mmm… sugar. (Not solely, but for my purpose today, yes.)