lib/load-config.js
function overrideWithEnvironment (object, environment) {
  if (object.environments && object.environments[environment]) {
    const newObject = Object.assign(
      {},
      object,
      object.environments[environment]
    )
    delete newObject.environments
    return newObject
  }

  return object
}
function overrideWithEnvironment (object, environment) {
  if (object.environments && object.environments[environment]) {
    const newObject = Object.assign(
      {},
      object,
      object.environments[environment]
    )
    delete newObject.environments
    return newObject
  }

  return object
}
function overrideWithEnvironment ( object , environment ) { if ( object . environments && object . environments [ environment ] ) { const newObject = Object . assign ( { } , object , object . environments [ environment ] ) delete newObject . environments return newObject } return object }
If an environments key exists within a config object, use that data instead.
If an environments key exists within a config object use that data instead .