src code

instance method Spah.State#update

Spah.State#update(delta) → Object hash of path modifications
  • delta (Object) – a hash to be deep-merged into the existing data construct. Deep merging always occurs at the root of the existing state.

Deep-merges a hash of state changes into the current state:

During the merge hashes are merged, while strings, arrays and booleans are replaced if re-specified in the delta.