Skip to content

firstDifference beta ​

Function of @v12-engine/engine/testing

ts
export declare function firstDifference(a: unknown, b: unknown, path?: string): Difference | undefined;

Where two states first differ: the path to it (entities[id 11].pos.x) and what each holds there. Nothing when they are the same. Lists of things with an id are named by it, the rest by their place