MCPcopy Create free account
hub / github.com/apitable/apitable / isServer

Function isServer

packages/core/src/utils/env.ts:20–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19// The logic in the `core` sometimes needs to distinguish between the client and the server.
20export const isServer = () => typeof global === 'object' && global.process && !global['document'];
21export const isClient = () => typeof global === 'object' && global['document'];

Callers 5

constants.tsFile · 0.90
dateTimeFormatFunction · 0.90
isMeetFilterFunction · 0.90
getComputeRefManagerFunction · 0.90
api-client.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected