Class: Unity

Unity

new Unity(options)

Parameters:
Name Type Description
options object Options
Properties
Name Type Description
bindings string Root path for bindings
Source:

Methods

add a value to resolved path(path, value, context)

Parameters:
Name Type Description
path string Path to add to
value any Value to add
context object
Source:

Copy a value from one path to another(path, dest, context)

Parameters:
Name Type Description
path string Path to copy from
dest string Destination path
context object
Source:

decrease a value for a resolved path (path, value, context)

Parameters:
Name Type Description
path string Path to decrease
value any Value to decrease by
context object
Source:

delete a resolved path(path, context)

Parameters:
Name Type Description
path string Path to delete
context object
Source:

get a value by path(path, context)

Parameters:
Name Type Description
path string Path to get
context object
Source:

increase a value for a resolved path (path, value, context)

Parameters:
Name Type Description
path string Path to increase
value any Value to increase by
context object
Source:

Move a value from one path to another(path, dest, context)

Parameters:
Name Type Description
path string Path to move from
dest string Destination path
context object
Source:

set a value for a resolved path(path, value, context)

Parameters:
Name Type Description
path string Path to set
value any Value to set
context object
Source: