2.0.0 • Published 7 years ago
in-window v2.0.0
in-window
function that tells you if the global window object exists.
install
npm i in-window --save
usage
var inWindow = require('in-window')
inWindow && window.document.querySelector('.thing')
function that tells you if the global window object exists.
npm i in-window --save
var inWindow = require('in-window')
inWindow && window.document.querySelector('.thing')