Determines whether a specified property is enumerable.
SyntaxpropertyIsEnumerable( proName )
var a = new Array("apple", "banana", "cactus");
document.write(a.propertyIsEnumerable(1));
Remarks
The propertyIsEnumerable method returns true if proName exists in object and can be enumerated using a For loop. The propertyIsEnumerable method returns false if object does not have a property of the specified name or if the specified property is not enumerable. Typically, predefined properties are not enumerable, but user-defined properties are always enumerable.
The propertyIsEnumerable method does not consider objects in the prototype chain.
See also Specification15.2.4.7 Object.prototype.propertyIsEnumerable (V) ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011
AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4