JSFiddle - React, Tailwind, and code Playground
by br1ckb0t
JavaScript
someFunction = function() {
console.log("hi");
}
someFunction = (function() {
var cached_function = someFunction;
return function() {
// your code
console.log("new");
cached_function.apply(this, arguments); // use .apply() to call it
// more of your code
};
}());
someFunction();