A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Object/propertyIsEnumerable below:

propertyIsEnumerable · WebPlatform Docs

propertyIsEnumerable Summary

Determines whether a specified property is enumerable.

Syntax
propertyIsEnumerable( proName )
proName
Required. String value of a property name.
Examples
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 Specification

15.2.4.7 Object.prototype.propertyIsEnumerable (V) ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011

Attributions

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