Oops. That actually explains a lot, as I used to get could not read property 'foo' of undefined a lot when passing my functions around as references, in strict mode.
could not read property 'foo' of undefined
Thank you for the link, I had forgot how much use strict mode changes the game!
use strict mode
It makes code a little bit more reasonable.
Babel has implicit strict mode and u don't have to worry about forgetting to add it. :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.