Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
Justin Hunter
@polluterofminds
In JavaScript have arrow functions fallen out of favor? I noticed all AI chatbots return standard functions like: function myFunction() { // code } Instead of: const myFunction = () => { // code }
5 replies
2 recasts
8 reactions
Mo
@meb
A bit more explictness never hurts The main times I've used arrow functions have been in callbacks
1 reply
0 recast
1 reaction
Justin Hunter
@polluterofminds
I remember when React was all class-based, arrow functions were auto-binding and that’s when I first started using them and just default to it for everything now.
0 reply
0 recast
1 reaction