templates/sync-function/access-assignment-module.js
function resolveCollectionItems(originalItems, itemPrefix) {
    if (utils.isValueNullOrUndefined(originalItems)) {
      return [ ];
    } else if (Array.isArray(originalItems)) {
      var resultItems = [ ];
      for (var i = 0; i < originalItems.length; i++) {
        var item = originalItems[i];

        if (utils.isValueNullOrUndefined(item)) {
          continue;
        }

        resultItems.push(prefixItem(item, itemPrefix));
      }

      return resultItems;
    } else {
      // Represents a single item
      return [ prefixItem(originalItems, itemPrefix) ];
    }
  }
function resolveCollectionItems(originalItems, itemPrefix) {
    if (utils.isValueNullOrUndefined(originalItems)) {
      return [ ];
    } else if (Array.isArray(originalItems)) {
      var resultItems = [ ];
      for (var i = 0; i < originalItems.length; i++) {
        var item = originalItems[i];

        if (utils.isValueNullOrUndefined(item)) {
          continue;
        }

        resultItems.push(prefixItem(item, itemPrefix));
      }

      return resultItems;
    } else {
      // Represents a single item
      return [ prefixItem(originalItems, itemPrefix) ];
    }
  }
Transforms the given item or items into a new list of items with the specified prefix (if any) appended to each element