code: function resolveGlobals(providedGlobals, enabledEnvironments) {
      return Object.assign(
          {},
          ...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
          providedGlobals
      );
  }
docs: Combines the provided globals object with the globals from environments
  @param {Object} providedGlobals The 'globals' key in a config
  @param {Environments[]} enabledEnvironments The environments enabled in configuration and with inline comments
  @returns {Object} The resolved globals object