UNPKG
@cran/lib.vue.ref
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.1
Vue Reactivity Extensions
@cran/lib.vue.ref
/
mjs
/
utility
/
unref.js
6 lines
(5 loc)
•
160 B
JavaScript
View Raw
1
2
3
4
5
6
/* eslint-disable @typescript-eslint/unified-signatures */
import { isRef }
from
"vue"
;
export function
unref
(
ref
)
{
return
isRef(
ref
) ?
ref
.
value
:
ref
; }