UNPKG

@carbon/ibm-security

Version:

Carbon for Cloud & Cognitive IBM Security UI components

16 lines (14 loc) 452 B
/** * @file Environment helpers. * @copyright IBM Security 2018 */ var NODE_ENV = process.env.NODE_ENV; /** * Tests for the current environment. * @param {string} [env=development] - The environment to test against. * @returns {boolean} Returns true if it is the expected environment. */ export default (function () { var env = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'development'; return NODE_ENV === env; });