I've recently answered a question for the differences in length on StackOverflow.
stackoverflow.com/a/57327565/4035
The answer you are looking for is the section labeled, Following up with the comment. but you might want to read the whole answer.
Following up with the comment.
The gist is due to the arrow function syntax not creating this of its own.
this
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've recently answered a question for the differences in length on StackOverflow.
stackoverflow.com/a/57327565/4035
The answer you are looking for is the section labeled,
Following up with the comment.
but you might want to read the whole answer.The gist is due to the arrow function syntax not creating
this
of its own.