@tanstack/db
Version:
A reactive client store for building super fast apps on sync
20 lines (19 loc) • 682 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const REF_PROXY_BRAND = /* @__PURE__ */ Symbol(`refProxy`);
function readRefProxyBrand(value) {
if (!value || typeof value !== `object`) return void 0;
try {
const brand = value[REF_PROXY_BRAND];
return brand === true || Array.isArray(brand) ? brand : void 0;
} catch {
return void 0;
}
}
function isRefProxy(value) {
return value && typeof value === `object` && readRefProxyBrand(value) !== void 0;
}
exports.REF_PROXY_BRAND = REF_PROXY_BRAND;
exports.isRefProxy = isRefProxy;
exports.readRefProxyBrand = readRefProxyBrand;
//# sourceMappingURL=ref-proxy-identity.cjs.map