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

16 lines
179 B
JavaScript
Raw Normal View History

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