Home / Function/ update() — svelte Function Reference

update() — svelte Function Reference

Architecture documentation for the update() function in index.svelte.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  cf365259_f76b_db7c_d703_61a6a5f2673b["update()"]
  da8f7068_69e3_a7ca_9360_72a5923fe6de["index.svelte.js"]
  cf365259_f76b_db7c_d703_61a6a5f2673b -->|defined in| da8f7068_69e3_a7ca_9360_72a5923fe6de
  style cf365259_f76b_db7c_d703_61a6a5f2673b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/snapshot/samples/destructured-assignments/_expected/client/index.svelte.js lines 9–18

export function update(array) {
	((array) => {
		var $$array = $.to_array(array, 2);

		$.set(a, $$array[0], true);
		$.set(b, $$array[1], true);
	})(array);

	[c, d] = array;
}

Domain

Subdomains

Frequently Asked Questions

What does update() do?
update() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/destructured-assignments/_expected/client/index.svelte.js.
Where is update() defined?
update() is defined in packages/svelte/tests/snapshot/samples/destructured-assignments/_expected/client/index.svelte.js at line 9.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free