Skip to main content

Function: isTreeNode()

function isTreeNode(value): value is object;

Checks if a given object is now a tree node.

Parameters​

ParameterTypeDescription
valueunknownValue to check.

Returns​

value is object

true if it is a tree node, false otherwise.