17 lines
292 B
JavaScript
17 lines
292 B
JavaScript
function f(a, b) {
|
|
let x = []; // <- x starts being mutable here.
|
|
if (a.length === 1) {
|
|
if (b) {
|
|
x.push(b); // <- x stops being mutable here.
|
|
}
|
|
}
|
|
|
|
return <div>{x}</div>;
|
|
}
|
|
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: f,
|
|
params: ['TodoAdd'],
|
|
isComponent: 'TodoAdd',
|
|
};
|