JSTQL-JS-Transform/output_testing/930optional-computed-member-expression.js

4 lines
No EOL
100 B
JavaScript

function Component(props) {
const object = props |> makeObject(%);
return object?.[props.key];
}