MCPcopy
hub / github.com/sveltejs/kit / set

Function set

packages/kit/src/runtime/client/utils.js:225–228  ·  view source on GitHub ↗

@param {any} new_value

(new_value)

Source from the content-addressed store, hash-verified

223
224 /** @param {any} new_value */
225 function set(new_value) {
226 ready = false;
227 store.set(new_value);
228 }
229
230 /** @param {(value: any) => void} run */
231 function subscribe(run) {

Callers 1

checkFunction · 0.70

Calls 1

setMethod · 0.80

Tested by

no test coverage detected