When I come across a large object of unknown size, my usual approach is to iterate over it. In the past, I've used generators and custom Symbol.iterator functions to make these objects iterable with a for..of loop.
However, in the ever-evolving world of technology, I have found that using Object.keys in 2017 makes this process easier:
Object.keys(bigObject).forEach((key:string)=>{
console.log(bigObject[key]);
});
Surprisingly, this method works just fine. But my TypeScript compiler keeps throwing the error "error TS7017: Element implicitly has an 'any' type because type '{}' has no index signature"
Can anyone shed some light on what I might be overlooking here? Or perhaps share the current best practices for iteration using ES2015 and TypeScript (2.2.2)?