@carbon/ibm-security
Version:
Carbon for Cloud & Cognitive IBM Security UI components
15 lines (13 loc) • 391 B
JavaScript
/**
* @file Helper methods for checking environment's capabilities.
* @copyright IBM Security 2018
*/
// Verify that document exists in global namespace.
var isClient = function isClient() {
return typeof document !== 'undefined';
};
// Verify that Node exists in global namespace.
var isNode = function isNode() {
return typeof Node !== 'undefined';
};
export { isClient, isNode };