Tuesday, 13 November 2018

ELI5: module.exports = somefunction() vs modules.exports = () => somefunction()

Just to be clear, I understand the arrow function. I'm just not sure why the first is referenced differently than the second.

Submitted November 13, 2018 at 02:20PM by xanflorp

No comments:

Post a Comment