Table of contents
- 1. Summary
- 2. Description
- 3. Properties
- 4. Methods
Summary
Represents the Function prototype object.
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.
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.
bindRequires 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.
isGeneratorRequires JavaScript 1.8.6- Returns
trueif the function is a generator; otherwise returnsfalse.
toSourceNon-standard- Returns a string representing the source code of the function. Overrides the
Object.toSourcemethod.
toString- Returns a string representing the source code of the function. Overrides the
Object.toStringmethod.
Methods inherited from
Object:__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, toLocaleString, unwatch, valueOf, watch