Module: Punto

Classes

Punto

Members


<static> Punto.symbol :String

Default notation symbol.
Type:
  • String

Methods


<static> Punto.from(object [, symbol])

Creates a new Punto instance.
Parameters:
Name Type Argument Description
object Object Object that will be set in the instance. All operations will occur against it.
symbol String <optional>
Overrides the default notation symbol.
Returns:
Punto instance
Type
Punto

<static> Punto.get(object, property [, symbol])

Gets an object property value from a dot notated property path.
Parameters:
Name Type Argument Description
object Object Object to get a property.
property String Property dot notated path. It may include nested objects in the path.
symbol String <optional>
Overrides the default notation symbol.
Returns:
Object property value.
Type
*

<static> Punto.getSymbol()

Gets Punto's default notation symbol.
Returns:
Notation symbol.
Type
String

<static> Punto.normalize(object [, symbol])

Normalizes any dot notated property in the object. The dot notated property will be removed and replaced by its conversion.
Parameters:
Name Type Argument Description
object Object Object to be normalized.
symbol String <optional>
Overrides the default notation symbol.

<static> Punto.set(object, property [, symbol], value)

Sets an object property value from a dot notated property path.
Parameters:
Name Type Argument Description
object Object Object to have a property set.
property String Property dot notated path. It may include nested objects in the path.
symbol String <optional>
Overrides the default notation symbol.
value * Value to be set in the property.

<static> Punto.setSymbol(symbol)

Sets Punto's default notation symbol.
Parameters:
Name Type Description
symbol String Overrides the default notation symbol.