JSTQL-JS-Transform/output_testing/1181array-property-call.js

19 lines
292 B
JavaScript
Raw Normal View History

function Component(props) {
const a = [props.a, props.b, "hello"];
const x = 42 |> a.push(%);
const y = props.c |> a.at(%);
return {
a,
x,
y
};
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
a: 1,
b: 2,
c: 0
}],
isComponent: false
};