Here you can find the source of toString()
Array.prototype.toString = function(){ /*ww w . ja v a 2 s .c om*/ return "["+this.join(", ")+"]"; }
Array.prototype.toString = function () return '[' + this.join(',') + ']';
Array.prototype.toString = function () { var add = '[' this.map(function(elm) { return add + '['; })
Array.prototype.toString = function () { var str = "[" for(var i = 0; i < this.length; i++) { if(typeof this[i] === "string") { str += "'" + this[i] + "'"; } else { str += this[i].toString(); if(i < this[i].length) { ...
Array.prototype.toString = function () { var str = []; for (var i = 0; i < this.length; i++) { if (Array.isArray(this[i])) { str.push(this[i].toString()); }else if(typeof this[i] == 'string') { str.push("'" + this[i] + "'") else { ...
Array.prototype.toString = function () { return '(' + this.map(function(item) { return ''+item; }).join(' ') + ')'; };