Values tester

[data/tree/Values tester]


Tests for deep equality for tree and reference. Example:

  1. {"foo":{"bar":"baz"}}@0 is received via tree

  2. {"foo":{"bar":"baz"}}@0 is received via reference

  3. true@0 is sent via all values are same


Keywords: equal, tree, deep equal

Input ports

  • tree: (any[] or {string: any})

    The tree to test

  • reference: (any[] or {string: any})

    The reference tree structure

Output ports

  • all values are same: boolean

    Whether all nodes of the data tree are the same as the reference

Last updated