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/js/samples/instrumentation-script-x-eq.../input.svelte

12 lines
174 B

<script>
let things = [];
function foo() {
things.push(1);
things = things;
}
</script>
<button on:click={foo}>foo</button>
<p>number of things: {things.length}</p>