UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

11 lines (10 loc) 308 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unwrap = void 0; const vue_1 = require("vue"); function unwrap(wrapped) { return wrapped instanceof Function ? wrapped() : (0, vue_1.isRef)(wrapped) ? wrapped.value : wrapped; } exports.unwrap = unwrap;