I have a local state object that looks will look like this:
state:{
   pickup:{
      blah: stuff
    }
}
OR
state:{
   dropoff:{
      blah: stuff
    }
}
What I am trying to do is grab either the pickup or dropoff object and set it to some other variable.
This is being done in a function that is passing in whichever type we are attempting to pull off.
tl;dr How can I do something like const location = this.state.[locationType] where locationType is passed into my function.
