torso-bundle.js
function undefinedOrNullToEmptyArray(valueToConvert) {
    if (_.isUndefined(valueToConvert) || _.isNull(valueToConvert)) {
      valueToConvert = [];
    }
    return valueToConvert;
  }
function undefinedOrNullToEmptyArray(valueToConvert) {
    if (_.isUndefined(valueToConvert) || _.isNull(valueToConvert)) {
      valueToConvert = [];
    }
    return valueToConvert;
  }
function undefinedOrNullToEmptyArray ( valueToConvert ) { if ( _ . isUndefined ( valueToConvert ) || _ . isNull ( valueToConvert ) ) { valueToConvert = [ ] ; } return valueToConvert ; }
Converts any undefined or null values to an empty array.  All other values are left unchanged.
@param valueToConvert the value to check for null or undefined.
@return {Array|*} either the original value or [] if the valueToConvert is null or undefined.
Converts any undefined or null values to an empty array . All other values are left unchanged .