I have [3, 16, 120]. when I do [3, 16, 120].map(mapper), I want to achieve, for example [4,5, 17,18, 121,122] i.e. each element map to n
[3, 16, 120]
[3, 16, 120].map(mapper)
[4,5, 17,18, 121,122]
using Array#concat and Array#map
Array#concat
Array#map
Array.prototype.concat.apply([], [3, 16, 120].map(x => [x+1, x+2] ));