lib/packages/core-classes.js
function(data, padding) {

		var tempResult = [],
			i = 0,
			count = data.length,
			child_padding = padding + "\t",
			result;

		if (count == 0) {

			result = '[]';

		} else if (count == 1) {

			result = '[' + this._serializeValue(data[i], padding) + ']';

		} else {

			for (; i < count; i++) {

				tempResult.push(this._serializeValue(data[i], child_padding));

			}

			result = '[' + "\n\t" + padding + tempResult.join(",\n\t" + padding) + "\n" + padding + ']';

		}

		return result;

	}
function(data, padding) {

		var tempResult = [],
			i = 0,
			count = data.length,
			child_padding = padding + "\t",
			result;

		if (count == 0) {

			result = '[]';

		} else if (count == 1) {

			result = '[' + this._serializeValue(data[i], padding) + ']';

		} else {

			for (; i < count; i++) {

				tempResult.push(this._serializeValue(data[i], child_padding));

			}

			result = '[' + "\n\t" + padding + tempResult.join(",\n\t" + padding) + "\n" + padding + ']';

		}

		return result;

	}
function ( data , padding ) { var tempResult = [ ] , i = 0 , count = data . length , child_padding = padding + "\t" , result ; if ( count == 0 ) { result = '[]' ; } else if ( count == 1 ) { result = '[' + this . _serializeValue ( data [ i ] , padding ) + ']' ; } else { for ( ; i < count ; i ++ ) { tempResult . push ( this . _serializeValue ( data [ i ] , child_padding ) ) ; } result = '[' + "\n\t" + padding + tempResult . join ( ",\n\t" + padding ) + "\n" + padding + ']' ; } return result ; }
Perform serialization of an array
@param {Array} data
@param {string} padding
@returns {string}
Perform serialization of an array