use Array.prototype.map() to double all elements in array.