Skip to content

@modoki/engine / index / applyOps

Function: applyOps() ​

applyOps(scene, ops, mint?): ApplyResult

Apply a list of mutation ops to a scene object. Mutates scene in place and also returns it. mint is injectable so tests get deterministic ids.

Parameters ​

scene ​

MutableScene

ops ​

MutateOp[]

mint? ​

() => string

Returns ​

ApplyResult

Built with Modoki.