Given I have a javascript object, is there a way to iterate over all the primitive subproperties?
For instance, if I have an object
{
  foo: 17,
  bar: {
    a: 2,
    b: 7
  }
}
I would like to iterate over foo, bar.a, and bar.b.
Please keep in mind I prefer to iterate over Object.keys() rather than using a for/in loop, although I'm sure I could translate any for/in loop responses into an Object.keys() iteration.
 
     
     
    