util.isObject(obj)
Method Description |
Returns true if the Use this method, for example, to verify that a variable is a JavaScript object and not a JavaScript Function. |
Returns |
boolean |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2016.1 |
Parameters
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
obj |
Object | Primitive |
required |
Object for which you want to verify the type. |
2016.1 |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a full script sample, see N/util Module Script Sample.
//Add additional code
...
util.isObject({}); // returns true
util.isObject(function() {}); // returns false
...
//Add additional code