13 lines
No EOL
272 B
JavaScript
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]
|
|
}]
|
|
}; |