Skip to main content
Module

x/replicache/has-own.ts

Realtime Sync for Any Backend Stack
Latest
File
/* eslint-disable @typescript-eslint/no-explicit-any */const objectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
/** * Object.hasOwn polyfill */export const hasOwn: (object: any, key: PropertyKey) => boolean = (Object as any).hasOwn || ((object, key) => objectPrototypeHasOwnProperty.call(object, key));