The isDOMNode() method tests if the provided value is a DOM Node and returns a boolean value.

Syntax

bapi.helper.isDOMNode(value)

Parameters

value

The value to test.

Example

var dn = document.createElement("INPUT");
bapi.helper.isDOMNode(dn);//returns true

//following return false
bapi.helper.isDOMNode("Test Value.");
bapi.helper.isDOMNode([1,2,5]);
bapi.helper.isDOMNode({id: 1, name: "Joe"});