N/util Module
Use the N/util module to manually access methods that verify object and primitive types in a SuiteScript 2.x script. These methods can also be accessed using the global util object. For more information about the global util object, see SuiteScript 2.x Global Objects.
Use the N/util module to access methods that verify object and primitive types in a SuiteScript 2.x script.
Each method (for example, util.isArray(obj)) returns a boolean value, based on evaluation of the obj
parameter.
If you need to identify a type specific to SuiteScript 2.x, use the toString() global method.
In This Help Topic
N/util Module Members
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Method |
Object or Array |
Client and server scripts |
Iterates over each member in an Object or Array. |
|
Object |
Client and server scripts |
Copies the properties in a source object to a destination object. |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |
||
boolean |
Client and server scripts |
Returns true if the |