Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.hasAttributes()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Node.hasAttributes() for more information.

N/xml Module
Node.hasAttributes()
Method Description: Returns true if the current node has attributes defined, or false otherwise. This method is not supported on Internet Explorer.
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.hasAttributes()

Example:

// Code Example 1
//Add additional code
//...
var hasAttributes = parentNode[0].hasAttributes()
//...
//Add additional code

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