function foo(props) {
let { x } = { x: [] };
x.push(props.bar);
if (props.cond) {
({ x } = { x: {} });
({ x } = { x: [] });
x.push(props.foo);
}
return x;
}
function foo(props) {
let { x } = { x: [] };
x.push(props.bar);
if (props.cond) {
({ x } = { x: {} });
({ x } = { x: [] });
x.push(props.foo);
}
return x;
}