UNPKG

@carbon/ibm-security

Version:

Carbon for Cloud & Cognitive IBM Security UI components

20 lines (17 loc) 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNode = exports.isClient = void 0; /** * @file Helper methods for checking environment's capabilities. * @copyright IBM Security 2018 */ // Verify that document exists in global namespace. var isClient = exports.isClient = function isClient() { return typeof document !== 'undefined'; }; // Verify that Node exists in global namespace. var isNode = exports.isNode = function isNode() { return typeof Node !== 'undefined'; };