Function.prototype
Read content offline
HISTORY EDIT
TABLE OF CONTENTS
Summary
Description
Properties
Methods
TAGS FILES
Summary
Represents the Function prototype object.
Property of Function
Implemented in: JavaScript 1.1, NES 2.0
ECMA Version: ECMA-262
Description
Function objects inherit from Function.prototype. Modifications to the Function.prototype object are propagated to all Function instances.
Properties
arguments Deprecated
An array corresponding to the arguments passed to a function. This is deprecated as property of Function, use the arguments object available within the function instead.
arity Obsolete since JavaScript 1.8.6
Specifies the number of arguments expected by the function. Use the length property instead.
caller Non-standard
Specifies the function that invoked the currently executing function.
constructor
Specifies the function that creates an object's prototype.
length
Specifies the number of arguments expected by the function.
name Non-standard
The name of the function.
Properties inherited from Object:
constructor
Methods
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.
bind Requires JavaScript 1.8.5
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.
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.
isGenerator Requires JavaScript 1.8.6
Returns true if the function is a generator; otherwise returns false.
toSource Non-standard
Returns a string representing the source code of the function. Overrides the Object.toSource method.
toString
Returns a string representing the source code of the function. Overrides the Object.toString method.
Methods inherited from Object:
toSource
[url]https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype[/url]
Read content offline
HISTORY EDIT
TABLE OF CONTENTS
Summary
Description
Properties
Methods
TAGS FILES
Summary
Represents the Function prototype object.
Property of Function
Implemented in: JavaScript 1.1, NES 2.0
ECMA Version: ECMA-262
Description
Function objects inherit from Function.prototype. Modifications to the Function.prototype object are propagated to all Function instances.
Properties
arguments Deprecated
An array corresponding to the arguments passed to a function. This is deprecated as property of Function, use the arguments object available within the function instead.
arity Obsolete since JavaScript 1.8.6
Specifies the number of arguments expected by the function. Use the length property instead.
caller Non-standard
Specifies the function that invoked the currently executing function.
constructor
Specifies the function that creates an object's prototype.
length
Specifies the number of arguments expected by the function.
name Non-standard
The name of the function.
Properties inherited from Object:
constructor
Methods
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.
bind Requires JavaScript 1.8.5
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.
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.
isGenerator Requires JavaScript 1.8.6
Returns true if the function is a generator; otherwise returns false.
toSource Non-standard
Returns a string representing the source code of the function. Overrides the Object.toSource method.
toString
Returns a string representing the source code of the function. Overrides the Object.toString method.
Methods inherited from Object:
toSource
[url]https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype[/url]