canUseDom.js 135 Bytes
export default function canUseDom() {
  return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
}