JSFiddle - React, Tailwind, and code Playground
JavaScript
var sp = {
name: 'a'
};
function makeTimeout(serial){
alert(serial);
}
if (!Function.prototype.bind) {
console.log("using anonymous function");
setTimeout(function () {
makeTimeout(sp.name)
}, 1000);
} else {
console.log("using bind");
setTimeout(makeTimeout.bind(this, sp.name), 1000);
}