Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.isSameNode(options)

{Node}.isSameNode({other: {xml.Node}})

N/xml Module
Node.isSameNode()
Method Description: Returns true if two nodes reference the same object or returns false if two nodes do not reference the same object. If two nodes are the same, all attributes have the same values and you can use methods on the two nodes interchangeably. Two nodes that are the same are also equal. See Node.isEqualNode(options). This method is not supported on Internet Explorer or Firefox.
Returns: boolean
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/xml Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Node.isSameNode(options)

Example:

// Code Example 1
//Add additional code
//...
var isSame = elem[0].isSameNode({
other : node
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_454356628417.html