UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

20 lines (19 loc) • 536 B
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; } export { REF_PROXY_BRAND, isRefProxy, readRefProxyBrand }; //# sourceMappingURL=ref-proxy-identity.js.map