Articles with tag: javascript

.map() your NetSuite Search Results

When writing SuiteScript, your code will be easier to read if you can use regular JavaScript objects rather than the script IDs for your custom field names. Using the JavaScript .map() function can help.

SuiteScript Function Naming

Naming functions well in our code is often challenging. With no modules to speak of in SuiteScript 1.0, these function often exist in the JavaScript global namespace. This is an easy way to namespace your functions to avoid any naming collisions.