JavaScript PropertyDescriptor : Object
A
PropertyDescriptor
describes a property on an Object
. Any
JavaScript object can be used as a PropertyDescriptor
where unspecified properties will be treated as
undefined
or false
.
Instance Properties
configurable : Boolean
Set to true
if the property descriptor can be changed later. See the Object.freeze()
and Object.seal()
methods for ways to set configurable to false on all
properties on an object.
Example:
RunResults:
enumerable : Boolean
Set to true
if the property is accessed during for (propertyName in object)
. See the Object.propertyIsEnumerable()
method.
Example:
RunResults:
get : getFunction
getFunction() : Object
value : Object
Copyright © PUBLIC Contributors