JSTQL-JS-Transform/output_testing/637for-of-simple.js

8 lines
132 B
JavaScript
Raw Normal View History

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