@cran/lib.vue.ref
Version:
Vue Reactivity Extensions
15 lines (14 loc) • 378 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useAnd = void 0;
const utility_1 = require("../utility");
/**
* @since 0.0.1
* @category Operator
*/
function useAnd(x, y) {
return (0, utility_1.eagerComputed)(function compute() {
return (0, utility_1.unwrap)(x) && (0, utility_1.unwrap)(y);
});
}
exports.useAnd = useAnd;