Skip to main content

Function: assertIsTreeNode()

function assertIsTreeNode(value, argName?): asserts value is object;

Asserts a given object is now a tree node, or throws otherwise.

Parameters​

ParameterTypeDefault valueDescription
valueunknownundefinedValue to check.
argNamestring"argument"Argument name, part of the thrown error description.

Returns​

asserts value is object