DEV Community

Discussion on: JavaScript - debounce vs throttle ⏱

Collapse
 
assurestudios profile image
John Moore

Can somebody please explain in baby terms why func.apply(this, arguments) is needed instead of just func()

Collapse
 
iyashsoni profile image
Yash Soni

Hi John, we use apply when we need to pass an explicit this context to the function. You may want to check the following examples: taniarascia.com/this-bind-call-app...