UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

16 lines (15 loc) 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isClient = exports.isBrowserClient = void 0; exports.toArray = toArray; function toArray(value) { if (Array.isArray(value)) { return value; } return value !== undefined ? [value] : []; } const isClient = exports.isClient = typeof window !== 'undefined' && window.document && window.document.documentElement; /** Is client side and not jsdom */ const isBrowserClient = exports.isBrowserClient = process.env.NODE_ENV !== 'test' && isClient;