2024-10-15 23:05:53 +03:00
..
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03:00
2024-10-15 23:05:53 +03: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) { //... }