Function
Overview
The javascript Function implementation. Each function in javascript is actually a Function instance.
For more information see: Function (MDN).
Properties Summarized
Type | Name | Summary |
---|---|---|
Specifies the function that creates an object's prototype. | ||
Specifies the number of arguments expected by the function. |
Methods Summarized
Type | Name | Summary |
---|---|---|
void | Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object. | |
void | Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called. | |
void | Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are. | |
Returns a string representing the source code of the function. |
Properties Detailed
constructor
Specifies the function that creates an object's prototype.
Type Function
Sample
length
Specifies the number of arguments expected by the function.
Type Number
Sample
Methods Detailed
apply()
Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.
Returns: void
Sample
bind()
Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.
Returns: void
Sample
call()
Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.
Returns: void
Sample
toString()
Returns a string representing the source code of the function. Overrides the Object.toString method.
Returns: String
Sample
Last updated