2014-10-12 13:39:31 +11:00

4 lines
43 B
JavaScript

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