JavaScript Object
Instance Methods
Returns true if this has a property named propertyName stored on it. This method can be used to see if a property is set on the object, even if the value is set to undefined. Properties stored in the prototype chain do not count.
Example:
RunResults:
Returns true if the property named propertyName on this is enumerable and should be returned during a for (x in y) loop.
Example:
RunResults:
Returns a locale specific (if possible) string representation of this.
Example:
RunResults:
Object Methods
Returns a new Object with prototype equal to prototype. Each property on propertyDescriptors will be added to the new object.
Example:
RunResults:
For each property on propertyDescriptors, defines a new property on obj with the same name and supplied descripton. Returns obj.
Example:
RunResults:
Defines a new property with name equal to propertyName on obj with the supplied description. Returns obj.
Example:
RunResults:
For each property on obj, sets its property description's configurable property to false and writable property to false. Also calls preventExtensions on obj. Returns obj.
Example:
RunResults:
Returns an Array of the names of all properties set on obj including those that are not enumerable.
Example:
RunResults:
Returns false if preventExtensions was called on obj. A non-extensible object cannot have new properties added to it.
Example:
RunResults:
Returns true if freeze was called on obj. A frozen object cannot have new properties added and existing properties cannot be modified.
Example:
RunResults:
Returns true if seal was called on obj. A sealed object cannot have new properties added to it but the value of existing properties can be changed.
Example:
RunResults:
Prevents new properties from being added to obj. Unlike freeze, existing properties can be modified. Returns obj.
Example:
RunResults:
Same as preventExtensions except it also sets each property as not configurable. Returns obj.