src/serialize.js
function serializeArray( array, indent = INDENT, pad = 0, space ) {
   const elements = array
      .map( element => serialize( element, indent, pad + indent, space ) );

   return '[' + serializeList( elements, indent, pad, space ) + ']';
}
function serializeArray( array, indent = INDENT, pad = 0, space ) {
   const elements = array
      .map( element => serialize( element, indent, pad + indent, space ) );

   return '[' + serializeList( elements, indent, pad, space ) + ']';
}
function serializeArray ( array , indent = INDENT , pad = 0 , space ) { const elements = array . map ( element => serialize ( element , indent , pad + indent , space ) ) ; return '[' + serializeList ( elements , indent , pad , space ) + ']' ; }
Serialize an array.
@private
@param {Array} array the array to serialize
@param {Number} [indent] the number of spaces to use for indent
@param {Number} [pad] the initial left padding
@param {String} [space] the character(s) to use for padding
@return {String} the serialized JavaScript code
Serialize an array .