Static
bufferBuffer the function with this number of milliseconds. When the function is called multiple times within the delay period only the last call will execute.
Rest
...args: any[]Static
createCreate a combined function of an orignal and new function. The new function will be called before the original,
Rest
...args: Parameters<F>export function playgroundTableOverride() {
PlaygroundTable.prototype.render = FunctionUtil.createInterceptor(
PlaygroundTable.prototype.render,
function(this:PlaygroundTable) {
this.el.classList.add("cls-added-by-override");
}
)
}
Static
createWill combine the given functions into one.
The newFn function will be called with the return value of origFn function + the parameters of origFn and function will return the value of newFn
Rest
...args: Parameters<F>function test(a:number, b:string) : string {
return b;
}
FunctionUtil.createSequence(test, function(r, a, b) {
return r + "b";
})
Static
delayStatic
onExecute on the next repaint
The onRepaint method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint.
Rest
...args: any[]Generated using TypeDoc
Function utilities