2018-01-09 15:36:42 +01:00

4 lines
43 B
JavaScript

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