Function、Array、Objectコンストラクタの長さ静的プロパティとは何ですか?Function、Array、およびObjectコンストラクタのlengthプロパティとは何ですか?
静的メソッドは意味がありますが、長さ静的プロパティはどうですか?
Object.getOwnPropertyNames(Array)
["length", "name", "arguments", "caller", "prototype", "isArray"]
Object.getOwnPropertyNames(Function)
["length", "name", "arguments", "caller", "prototype"]
注:私はここに頼まれていないFunction.prototypeのlengthプロパティについての答えを取得しています。
Object.getOwnPropertyNames(Function.prototype)
["length", "name", "arguments", "caller", "constructor", "bind", "toString", "call", "apply"]
Object.getOwnPropertyNames(Object)
["length", "name", "arguments", "caller", "prototype", "keys", "create", "defineProperty", "defineProperties", "freeze", "getPrototypeOf", "getOwnPropertyDescriptor", "getOwnPropertyNames", "is", "isExtensible", "isFrozen", "isSealed", "preventExtensions", "seal"]
ECMA-262第3版、セクション* 15.2.3 *、* 15.3.3 *と* 15.4.3 *すべてのこれらのコンストラクタは、その値の1 – DCoder
おかげで 'length'性質を持っていることを指定明確化:)しかし、なぜ1つの特定の理由? –