Skip to content

Check if a JavaScript environment has a DOM

License

Notifications You must be signed in to change notification settings

jloads/has-dom

 
 

Repository files navigation

has-dom

Check if a JavaScript environment has a DOM

Install

$ npm install has-dom

Usage

const hasDom = require('has-dom');

// In Node.js
hasDom();
//=> false

// In the browser
hasDom();
//=> true

License

MIT © Sindre Sorhus

About

Check if a JavaScript environment has a DOM

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%