Function.prototype

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]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值