new Punto( [object] [, symbol])
Creates a new Punto instance.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
object |
Object |
<optional> |
Object that will be set in the instance. All operations will occur against it. |
symbol |
String |
<optional> |
Overrides the default notation symbol. |
Members
-
<protected> object :Object
-
Type:
- Object
- Default Value:
-
- null
-
<protected> symbol :String
-
Type:
- String
- Default Value:
-
- .
Methods
-
get(property)
-
Gets an object property value from a dot notated property path.
Parameters:
Name Type Description propertyString Property dot notated path. It may include nested objects in the path. Returns:
Object property value.- Type
- *
-
getObject()
-
Gets instance object.
Returns:
Instance object.- Type
- Object
-
getSymbol()
-
Gets instance notation symbol.
Returns:
Notation symbol.- Type
- String
-
normalize()
-
Normalizes any dot notated property in the object. The dot notated property will be removed and replaced by its conversion.
-
set(property, value)
-
Sets an object property value from a dot notated property path.
Parameters:
Name Type Description propertyString Property dot notated path. It may include nested objects in the path. value* Value to be set in the property. -
setSymbol(symbol)
-
Sets instance notation symbol.
Parameters:
Name Type Description symbolString Overrides instance default notation symbol.