its saying that whatever is in arr[i] is undefined...
# suitescript
c
its saying that whatever is in arr[i] is undefined. You can either wrap it in an if check to skip null/undefined (in JS they are 2 separate things but the if statement catches both) values or if its not supposed to be null, then investigate the code that is populating arr