Node.js examples for String:Format
Apply string format to all elements of array and return result
Array.prototype.format=function(prefix) { var result = []; this.forEach(function(entry) { result.push(prefix.format(entry)); });/*ww w.j a va 2s. c o m*/ return result; };