Snippets
Last updated
Last updated
Referencing this
inside a callback can be tricky, since this
refers to the context where the function is called, not where it is defined. To explicitly bind this
to the defining context, :
To find the first element of an array satisfying some criteria, . If you just need the index, . ()
Log the current stack to the console: