Object source
Properties
Methods
-
create(prototype, descriptor) <constructor> source
-
Creates a new object that inherits prototypically directly from a given prototype, optionally defining some properties.
Parameters:
Name Type Description prototypeObject the prototype to inherit, or
nullfor no prototype, which makes "proto" the only special property name.descriptorObject a property descriptor
Returns:
a new object inheriting from the given prototype and having the given property descriptor.
-
getPropertyDescriptor(anObject, propertyName) → {Object} <constructor> source
-
Returns the descriptor object for an object's property.
Parameters:
Name Type Description anObjectObject The object containing the property.
propertyNamestring The name of the property.
Returns: Object
The object's property descriptor.
-
clear() source
-
Removes all properties owned by this object making the object suitable for reuse.
Returns:
this
Generated from v0.14.14