UNPKG

semantic-ui-react

Version:
11 lines (7 loc) 361 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