JSTQL-JS-Transform/output_testing/582do-while-simple.js

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;
}