ES5のObject.getOwnPropertyNamesが入った。これは何をするメソッドかと言うと、enumerableでないプロパティを含めて全てのプロパティを列挙する物である。 つまり、 alert(Object.getOwnPropertyNames(Array.prototype).join("\n")); /* length,constructor,push,join,unshift,reduceRight,… */ のように使う。 Ownという名前がついていることから分かる通り、hasOwnProperty(name)がtrueになるものしか列挙されない。よって、プロトタイプチェーンを辿って全てのプロパティを列挙したい場合、下記のようなメソッドを使うと良い。 function getAllProperties(object) { var result = Object.cr