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
/
object
/
useGet.js
8 lines
(7 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ eagerComputed, unwrap }
from
"../utility"
;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export
function
useGet
(
values, property
) {
return
eagerComputed
(
function
compute
(
) {
return
unwrap
(
unwrap
(values)[
unwrap
(property)]); }); }