JS: Function.prototype.apply vs Function.prototype.call
What's the difference?
- Function.prototype.apply takes a array for arguments.
- Function.prototype.call must have each argument as a parameter. (but if you have a array, you can use Spread Operator)
💡 TIP: best to always use Reflect.apply