JSTQL-JS-Transform/output_testing/1136for-of-destructure.js

21 lines
No EOL
270 B
JavaScript

function Component() {
let x = [];
let items = [{
v: 0
}, {
v: 1
}, {
v: 2
}];
for (const {
v
} of items) {
v * 2 |> x.push(%);
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
isComponent: false
};