Object.prototype.propertyIsEnumerable()【列挙可能プロパティ 判定】メソッド
メモ
- プロパティが列挙可能か判定
構文
- propertyIsEnumerable ( V )
- V:プロパティ名
プロパティの列挙可能 判定 (true:列挙可 / :false列挙不可)
例
var array = [100, 200, 300];
console.log(array.propertyIsEnumerable(0)); // true
console.log(array.propertyIsEnumerable(3)); // false
console.log(array.propertyIsEnumerable('length')); // false