Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sveltejs/svelte
/ update_prop
Function
update_prop
packages/svelte/src/internal/client/reactivity/props.js:32–36 ·
view source on GitHub ↗
(fn, d = 1)
Source
from the content-addressed store, hash-verified
30
* @returns {number}
31
*/
32
export
function
update_prop(fn, d = 1) {
33
const
value = fn();
34
fn(value + d);
35
return
value;
36
}
37
38
/**
39
* @param {((value?: number) => number)} fn
Callers
nothing calls this directly
Calls
1
fn
Function · 0.70
Tested by
no test coverage detected