get-doc
Return document
, if there’s DOM. Just a way simpler than get-document. Use to avoid document is undefined
error.
$ npm isntall get-doc
var doc = ; doc; //`document` in browser, `null` in node
Return document
, if there’s DOM. Just a way simpler than get-document. Use to avoid document is undefined
error.
$ npm isntall get-doc
var doc = ; doc; //`document` in browser, `null` in node
npm i get-doc
9,803
1.0.4
Unlicense