text: /*
  ** Write a function collectStrings which accepts an object and returns an 
  ** array of all the values in the object that have a typeof string.
  */
  
  const collectStrings = obj => {
    let result = [];
  
    for(let key in obj) {
      if(typeof obj[key] === 'string') {
          result.push(obj[key]);
      }
      else if(typeof obj[key] === 'object') {
          result = result.concat(collectStrings(obj[key]));
      }
    }
  
    return result;
  }
  
  const obj = {
    stuff: "foo",
    data: {
        val: {
            thing: {
                info: "bar",
                moreInfo: {
                    evenMoreInfo: {
                        weMadeIt: "baz"
                    }
                }
            }
        }
    }
  }
  
  console.log(collectStrings(obj)); // ["foo", "bar", "baz"])