element-plus/packages/utils/isServer.ts
2020-10-20 13:50:29 +08:00

2 lines
45 B
TypeScript

export default typeof window === 'undefined'