Function assertIsNode

  • Asserts that the given object is a mobx-bonsai node.

    Parameters

    • node: object

      The object to check.

    • argName: string

      The name of the argument being checked. This is used in the error message.

    Returns void

    If the object is not a mobx-bonsai node.