Javascript Array toFormat(spec)
Array.prototype.toFormat = function (spec) { var buffer = []; for (var i = 0, len = this.length; i < len; i++) { buffer[i] = Jitsi.format(spec, this[i]); }/*from w w w .j a v a2 s.c o m*/ return buffer.join(''); };