DEV Community

Discussion on: Help me understand this code, please

Collapse
mbdunson profile image
M. Brian Dunson Author

Ok, so what I was missing is:
return x => x * factor;

is the same as:
return function(x) { return x * factor; };

Thank you for your excellent explanation!