UNPKG

@snipsonian/core

Version:

Core/base reusable javascript code snippets

13 lines (12 loc) 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IS_BROWSER = void 0; const isUndefined_1 = require("./isUndefined"); exports.IS_BROWSER = !isNodejs(); function isNodejs() { var _a; if (typeof process !== 'undefined') { return !(0, isUndefined_1.default)((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node); } return false; }