I have two rules of thumb that help me avoid these problems fairly well:
- never type the word
function
inside of one, always use arrow functions - whenever tempted to pass a method, create a lexically-scoped lambda instead
I have two rules of thumb that help me avoid these problems fairly well:
function
inside of one, always use arrow functions