UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

12 lines (11 loc) • 477 B
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