myObject.propertyIsEnumerable( propertyOrMethodName ) in ECMAScript 262

Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration.

Arguments

nametypedescription
propertyOrMethodName String The name of the property or me
Return Type
Boolean

Description

This method does not search the inheritance chain of any instance supplied. Returns false if no property/method of the supplied name exists, or if one exists but will not appear during enumeration. In general, built-in properties and methods are not enumerable, while user-defined properties and methods are.