Trying to see if there is a shorthand/trick way of creating a flatten map from a nested object. The nested properties to be separated by '.' when drilling down
i.e.
const settings = { 
          "canFly": "false",
            "school": {
                "highschool": true,
                "college": true
        }
};
Map to be something like:
{ 
  "canFly": false, 
  "school.highschool" : true, 
  "school.college" : true, 
}
I currently have some logic which will spit out what I need but would like to know if there is trick to doing this. (Want to use something that is available other than redoing something)
 
    