index.js
function _getEnvUrl (currentEnv, config) {
  if (currentEnv && config) {
    if (currentEnv === 'prod') {
      return config.urls.prod
    } else if (currentEnv === 'ref') {
      return config.urls.ref
    } else {
      return config.urls.dev
    }
  }
}
function _getEnvUrl (currentEnv, config) {
  if (currentEnv && config) {
    if (currentEnv === 'prod') {
      return config.urls.prod
    } else if (currentEnv === 'ref') {
      return config.urls.ref
    } else {
      return config.urls.dev
    }
  }
}
function _getEnvUrl ( currentEnv , config ) { if ( currentEnv && config ) { if ( currentEnv === 'prod' ) { return config . urls . prod } else if ( currentEnv === 'ref' ) { return config . urls . ref } else { return config . urls . dev } } }
Get the url for the current environmen.
@param {*} currentEnv current environment.
@param {*} config the given config.
Get the url for the current environmen .