2

TFW 'this' in functions loses its context when in promise chains and none of the blogs mentioned it :^)

Comments
  • 1
    Yeahhh, you either need to ".bind" or do something like "(res) =) myfuncname(res)".... Obviously that's a fat arrow,not a random bracket... Bit me in the butt the other day even though I knew about this xD
Add Comment