4 lines
42 B
JavaScript
4 lines
42 B
JavaScript
arr.map(function(x) {
|
|
return x * x;
|
|
});
|
arr.map(function(x) {
|
|
return x * x;
|
|
});
|