9 lines
No EOL
157 B
JavaScript
9 lines
No EOL
157 B
JavaScript
function Component() {
|
|
let x = [1, 2, 3];
|
|
let ret = [];
|
|
do {
|
|
let item = x.pop();
|
|
item * 2 |> ret.push(%);
|
|
} while (x.length);
|
|
return ret;
|
|
} |