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