JSTQL-JS-Transform/output_testing/1104for-multiple-variable-declarations-in-initializer.js

13 lines
No EOL
272 B
JavaScript

function Component(props) {
const items = [];
for (let i = 0, length = props.items.length; i < length; i++) {
props.items[i] |> items.push(%);
}
return items;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
items: ["a", "b", 42]
}]
};