Returns an empty parameterless function which returns undefined
. Useful for defaulting optional callback arguments instead of creating new anonymous empty functions.
Must call Format.Config.addUtilsToGlobals to be defined.
The return type of the empty callback.
Returns the name of a function.
Must call Format.Config.addUtilsToGlobals to be defined.
A functional object.
The name of a function or ""
for lambda functions.
Returns the rightmost accessor's name of the function's first returned variable.
For example a return expression like return this.field;
will yield "field"
as a value.
Must call Format.Config.addUtilsToGlobals to be defined.
A functional object.
The text of the last literal contained in the first return expression of the function.
Returns a memoized function wrapper of the function. All calls with the same arguments to the original function are cached after the first use.
Must call Format.Config.addUtilsToGlobals to be defined.
The type/signature of the original function.
The function whose results will be cached.
A cache key resolver function used to store the call arguments' list as a string key. Defaults to JSON.stringify
.
An array containing the call arguments for the function.
Generated using TypeDoc
Extends the built-in javascript
Function
object's static API.The Format.Config.addUtilsToGlobals method must be called in order to access the definitions.