isNode(obj): obj is Node
Returns whether or not the given object is a Node. This method is a type guard and after using this method to test an object it can subsequently be treated as a Node if the method returns true.
Parameters
obj
any
Returns
obj is Node