tests/lib/ludorum.js
/** If `root()` is called without arguments, it returns the current root.
	If a state is given, that state is assigned as the new root, and the whole
	cache is pruned.
	*/
If `root()` is called without arguments, it returns the current root.
If a state is given, that state is assigned as the new root, and the whole
cache is pruned.
If ` root () ` is called without arguments it returns the current root . If a state is given that state is assigned as the new root and the whole cache is pruned .
function root(state) {
		if (arguments.length > 0) { 
			var stateId = this.stateIdentifier(state);
			this.__root__ = this.get(stateId) || this.entry(state, stateId);
			this.prune(stateId);
		}
		return this.__root__;
	}
function root ( state ) { if ( arguments . length > 0 ) { var stateId = this . stateIdentifier ( state ) ; this . __root__ = this . get ( stateId ) || this . entry ( state , stateId ) ; this . prune ( stateId ) ; } return this . __root__ ; }
If `root()` is called without arguments, it returns the current root.
If ` root () ` is called without arguments it returns the current root .
// Called with argument means setter.