Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I think technically its a lambda, but JS calls them arrow functions:
https://exploringjs.com/es6/...
I dunno, never heard of em before now. -
@galileopy I would, but I haven't been able to convince them to use typescript yet. I will try again next time though
-
@M1sf3t can't do that either. We have big customers who still use IE. They will phase IE out... Eventually. They have thousands of pcs each without admin access (except for their IT department). Having to install something in all computers would be time consuming and would thus cost too much money. It is not one of their priorities.
So basically after using arrow functions for 6 months I discovered just now that it also passes it's enclosing scope. The more you know
random
javascript
arrow function