JSTQL-JS-Transform/output_testing/1022function-expression-with-store-to-parameter.js

9 lines
195 B
JavaScript
Raw Normal View History

function Component(props) {
const mutate = (object, key, value) => {
object.updated = true;
object[key] = value;
};
const x = props |> makeObject(%);
x |> mutate(%);
return x;
}