UNPKG

semantic-ui-react

Version:
12 lines (8 loc) 363 B
import _ from 'lodash' const hasDocument = typeof document === 'object' && document !== null const hasWindow = typeof window === 'object' && window !== null && window.self === window // eslint-disable-next-line no-confusing-arrow const isBrowser = () => !_.isNil(isBrowser.override) ? isBrowser.override : hasDocument && hasWindow export default isBrowser