I have a string cars.type.suv and I'm trying to access the object props but the object is a string.
var cars = {
   type:{
      suv:{
        //watever
      }
   }
};
Question: How can I turn the string cars.type.suv into the object.
I have a string cars.type.suv and I'm trying to access the object props but the object is a string.
var cars = {
   type:{
      suv:{
        //watever
      }
   }
};
Question: How can I turn the string cars.type.suv into the object.
