GoScrobble/web/node_modules/is-in-browser/readme.md

20 lines
232 B
Markdown
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
# Is In Browser?
```
import isBrowser from 'is-in-browser';
if(isBrowser) {
//...
}
```
## CommonJS
For those not using Babel / ES6 Modules
```
var isBrowser = require('is-in-browser').default;
if(isBrowser) { //... }
```