why the object with [object] doesnt work? Typescript

I’m trying to make this loop for each of the objects that are in config.textgen, for example, they are set1, set2…

Object.keys(config.textgen).forEach(set=>{
    for (let obj = config.textgen[set]){rtg.learn(obj)}
})

can you lend me a hand? I would appreciate it very much.