JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
JavaScript
Function.prototype.invoke_assign = function() {
var func = this;
var args = arguments;
func.call.apply( func, arguments );
return function() { func.call.apply( func, args ); };
};
function dothis( a,b,c ) {
document.body.appendChild( document.createElement('div') )
.innerHTML = this + ' ' + a + ' ' + b + ' ' + c;
}
setInterval( dothis.invoke_assign('thisArg',1,2,3), 4000 );