JSTQL-JS-Transform/output_testing/1005do-while-conditional-break.js

10 lines
No EOL
154 B
JavaScript

function Component(props) {
let x = [0, 1, 2, 3];
do {
if (x === 0) {
break;
}
x |> mutate(%);
} while (props.cond);
return x;
}