|
|
hace 3 años | |
|---|---|---|
| .. | ||
| dist | hace 3 años | |
| src | hace 3 años | |
| test | hace 3 años | |
| .babelrc | hace 3 años | |
| .eslintrc | hace 3 años | |
| .npmignore | hace 3 años | |
| package.json | hace 3 años | |
| readme.md | hace 3 años | |
import isBrowser from 'is-in-browser';
if(isBrowser) {
//...
}
For those not using Babel / ES6 Modules
var isBrowser = require('is-in-browser').default;
if(isBrowser) { //... }