jkabot
12/14/2018, 8:51 PMnull
if there are no search results.
I usually style my code to use an early return for exceptional conditions
var results = nlapiSearchRecord)
if (!results) {
// special case when there are no results
return 0;
}
// safely do something do something with results because it is not null
var count = results.length