JSFiddle - React, Tailwind, and code Playground
by spechackers
JavaScript
var obj = {
x: 1,
func: function(a, b, c){
return this(a, b, c);
}
}
var newfunc = function(a, b, c){
return (a + b + c) * 20;
}
console.log(obj.func.apply(newfunc, [2, 3, 5]));