Home / Function/ inited() — svelte Function Reference

inited() — svelte Function Reference

Architecture documentation for the inited() function in set.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  0897fecf_4cf0_3844_68cc_d9edf7a0a23a["inited()"]
  eea73370_3158_afe8_bb16_b4ffb58d476f["SvelteSet"]
  0897fecf_4cf0_3844_68cc_d9edf7a0a23a -->|defined in| eea73370_3158_afe8_bb16_b4ffb58d476f
  a08b6cc5_af73_1be4_d02f_3113cf8a8305["get()"]
  0897fecf_4cf0_3844_68cc_d9edf7a0a23a -->|calls| a08b6cc5_af73_1be4_d02f_3113cf8a8305
  style 0897fecf_4cf0_3844_68cc_d9edf7a0a23a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/reactivity/set.js lines 92–116

	#init() {
		inited = true;

		var proto = SvelteSet.prototype;
		var set_proto = Set.prototype;

		for (const method of read_methods) {
			// @ts-ignore
			proto[method] = function (...v) {
				get(this.#version);
				// @ts-ignore
				return set_proto[method].apply(this, v);
			};
		}

		for (const method of set_like_methods) {
			// @ts-ignore
			proto[method] = function (...v) {
				get(this.#version);
				// @ts-ignore
				var set = /** @type {Set<T>} */ (set_proto[method].apply(this, v));
				return new SvelteSet(set);
			};
		}
	}

Subdomains

Calls

Frequently Asked Questions

What does inited() do?
inited() is a function in the svelte codebase, defined in packages/svelte/src/reactivity/set.js.
Where is inited() defined?
inited() is defined in packages/svelte/src/reactivity/set.js at line 92.
What does inited() call?
inited() calls 1 function(s): get.

Analyze Your Own Codebase

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

Try Supermodel Free