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/$$rest-without-props/App.svelte

12 lines
256 B

<script>
export let a;
export function b() {}
export let c = 1;
$: length = Object.keys($$restProps).length;
$: values = Object.values($$restProps);
</script>
<div>Length: {length}</div>
<div>Values: {values.join(',')}</div>
<div {...$$restProps} />