Constructor
new PropertyMap(prefix)
Create a new PropertyMap.
Parameters:
Name | Type | Description |
---|---|---|
prefix | String | The prefix of the properties name. |
Methods
delete(object)
Delete the properties of the object.
Parameters:
Name | Type | Description |
---|---|---|
object | Object | The object to delete properties. |
get(object) → {Object}
Get the properties of the object. If the object does not have properties, create a new one.
Parameters:
Name | Type | Description |
---|---|---|
object | Object | The object to get properties. |
Returns:
- The properties of the object.
- Type:
- Object
size() → {Number}
Get the number of objects that have properties.
Returns:
- The number of objects that have properties.
- Type:
- Number