Avoiding the Pass-by-Reference JavaScript Pitfall in ServiceNow

A commonly encountered and potentially difficult to debug issue associated with writing scripts in ServiceNow is the case of unintentionally working with a reference to a javascript object property instead of the property’s value. This is most commonly encountered in instances where you are iterating through the results of a GlideRecord query. Below you will find an […]