Node.js examples for Array:Array Value
Method to wrap each element of this array returns array
Array.prototype.wrapEach = function wrapEach(prefix,suffix) { var ret = [ ];//from ww w.java 2 s .c o m for (var i = 0; i < this.length; i++) { ret .push( prefix + this[i] + suffix ); } return ret; }