UNPKG

@snipsonian/core

Version:

Core/base reusable javascript code snippets

10 lines (9 loc) 331 B
import isUndefined from './isUndefined'; export const IS_BROWSER = !isNodejs(); function isNodejs() { var _a; if (typeof process !== 'undefined') { return !isUndefined((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node); } return false; }