MCPcopy
hub / github.com/sveltejs/svelte / get

Function get

packages/svelte/src/store/shared/index.js:204–209  ·  packages/svelte/src/store/shared/index.js::get
(store)

Source from the content-addressed store, hash-verified

202 * @returns {T}
203 */
204export function get(store) {
205 let value;
206 subscribe_to_store(store, (_) => (value = _))();
207 class="cm">// @ts-expect-error
208 return value;
209}

Callers 15

createSubscriberFunction · 0.90
hashMethod · 0.90
hostMethod · 0.90
hostnameMethod · 0.90
hrefMethod · 0.90
passwordMethod · 0.90
pathnameMethod · 0.90
portMethod · 0.90
protocolMethod · 0.90
searchMethod · 0.90
usernameMethod · 0.90
originMethod · 0.90

Calls 1

subscribe_to_storeFunction · 0.90

Tested by

no test coverage detected