MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / unref

Function unref

tech-study.js:1007–1009  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

1005 * @returns
1006 */
1007const unref = (val) => {
1008 return (isRef(val) ? val.value : val);
1009};
1010/**
1011 * @description 顶层 ref
1012 * @param v

Callers 3

watchFunction · 0.70
watchRefFunction · 0.70
watchEffectRefFunction · 0.70

Calls 1

isRefFunction · 0.70

Tested by

no test coverage detected