factory

Factory functions create state functions with the assigned plugins and context

factory(ctx: any?, fns: Array<function>?): function
Parameters
ctx (any?) the context, used to differentiate factories and nodes
fns (Array<function>? = []) iterable of plugin functions
Returns
function: state
Static Members
▸ isState(state?)
▸ state(x?)

state

state
Parameters
x ((any | function)?)
Returns
function: node
Static Members
▸ use(plugin)
▸ isOwnNode(x?)
▸ plugins
▸ updating
▸ capturing
▸ is
▸ of(x?)
▸ END
▸ GUARD
▸ isNode(node?)
▸ freeze(x?)
▸ end(x?)
▸ seal(x?)
▸ isSealed(node?)
▸ isFrozen(node?)
▸ isFinished(node?)
▸ context

node

Nodes are stateful variables. Nodes hold values or compute functions. Passing a node a parameter will update the node's value or compute function. Invoking a node function without a parameter will return the node's computed value.

node
Parameters
x ((any | function)?) function or value
Returns
any: node or node.value
Static Members
▸ locals
▸ state
▸ is
▸ context
▸ listeners
▸ dependents
▸ dependencies
▸ on(obj, method)
▸ seal()
▸ freeze()
▸ end()
▸ valueOf()
▸ toString()