function safeJoin(input, delimiter) {
	  if (!isArray(input)) return '';
	  var output = [];

	  for (var i = 0; i < input.length; i++) {
	    try {
	      output.push(String(input[i]));
	    } catch (e) {
	      output.push('[value cannot be serialized]');
	    }
	  }

	  return output.join(delimiter);
	}
function safeJoin(input, delimiter) {
	  if (!isArray(input)) return '';
	  var output = [];

	  for (var i = 0; i < input.length; i++) {
	    try {
	      output.push(String(input[i]));
	    } catch (e) {
	      output.push('[value cannot be serialized]');
	    }
	  }

	  return output.join(delimiter);
	}
function safeJoin ( input , delimiter ) { if ( ! isArray ( input ) ) return '' ; var output = [ ] ; for ( var i = 0 ; i < input . length ; i ++ ) { try { output . push ( String ( input [ i ] ) ) ; } catch ( e ) { output . push ( '[value cannot be serialized]' ) ; } } return output . join ( delimiter ) ; }
Join values in array
@param input array of values to be joined together
@param delimiter string to be placed in-between values
@returns {string}
Join values in array