new Object()
- Source:
Methods
clone() → {Object}
Returns a structured clone of the current object
- Source:
Returns:
- Type
- Object
defineProperty(name, propertyDescriptor) → {Object}
Calls defineProperty on the current object and returns the current object
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | Name of the property |
propertyDescriptor |
Object | Configuration for the property |
- Source:
Returns:
- Type
- Object
freeze() → {Object}
Calls freeze on the current object to turn it write protcted and returns the current object
- Source:
Returns:
- Type
- Object
getProperties(propName1, propName2, propNameN) → {Object}
Create a new object containing only the fields given
Parameters:
| Name | Type | Description |
|---|---|---|
propName1 |
string | Property name |
propName2 |
string | Property name |
propNameN |
string | Property name |
- Source:
Returns:
- Type
- Object
keys() → {Array}
Returns all own keys of object
- Source:
Returns:
- Type
- Array
toEntries() → {Array}
Returns all own properties as Array of 2 entry name,value arrays
- Source:
Returns:
- Type
- Array
toJson(replacer, Spacer) → {string}
Json stringifies current object
Parameters:
| Name | Type | Description |
|---|---|---|
replacer |
function | Replacer |
Spacer |
string | Space |
- Source:
Returns:
- Type
- string
values() → {Array}
Returns all own values of object
- Source:
Returns:
- Type
- Array