@tanstack/db
Version:
A reactive client store for building super fast apps on sync
14 lines (13 loc) • 568 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
function isPlainObject(value) {
if (value === null || typeof value !== `object`) return false;
const prototype = Object.getPrototypeOf(value);
return prototype === Object.prototype || prototype === null;
}
function isPromiseLike(value) {
return !!value && (typeof value === `object` || typeof value === `function`) && typeof value.then === `function`;
}
exports.isPlainObject = isPlainObject;
exports.isPromiseLike = isPromiseLike;
//# sourceMappingURL=type-guards.cjs.map