JSFiddle - React, Tailwind, and code Playground
JavaScript
function foo() {
console.log(this, arguments);
}
foo.call(0, 1, 2, 3)
foo.apply(0, [1, 2, 3])
foo(0, 1, 2, 3, 4);
function foo() {
console.log(this, arguments);
}
foo.call(0, 1, 2, 3)
foo.apply(0, [1, 2, 3])
foo(0, 1, 2, 3, 4);