@tanstack/db
Version:
A reactive client store for building super fast apps on sync
14 lines (13 loc) • 447 B
JavaScript
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`;
}
export {
isPlainObject,
isPromiseLike
};
//# sourceMappingURL=type-guards.js.map