2014-10-11 22:33:08 +11:00

4 lines
43 B
JavaScript

arr.map(function (x) {
return x * x;
});