JSTQL-JS-Transform/output_testing/639conditional-break-labeled.js

15 lines
No EOL
230 B
JavaScript

/**
* props.b *does* influence `a`
*/
function Component(props) {
const a = [];
props.a |> a.push(%);
label: {
if (props.b) {
break label;
}
props.c |> a.push(%);
}
props.d |> a.push(%);
return a;
}