You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/destructured-assignment-pat.../main.svelte

12 lines
197 B

<script>
const hoge = {};
const { foo: { bar } = {} } = hoge;
const hoge2 = {};
const { foo2: { bar2 } = { bar2: "bar2" } } = hoge2;
</script>
<div>hello {bar}</div>
<div>hello {bar2}</div>