Function Type Extensions

Provides static functions that extend the built-in ECMAScript (JavaScript) Function type by including exception details and support for application-compilation modes (debug or release).

Namespace: None. This type extension is global and not part of a namespace.

Inherits: None

var func = function Function(param1, param2, paramN);



Function.createCallback Function

Creates a callback function that retains the parameter initially used during an objects creation.

Function.createDelegate Function

Creates a delegate function that retains the context initially used during an objects creation.

Function.emptyMethod Function

A function that does nothing.

Function.validateParams Function

Validates that the parameters to a method are as expected.

Community Additions