In my angular-cli-built app (which is currently using TypeScript 2.0.3) I want to be able to use this decomposition-based iterator:
for (let [key, value] of Object.entries(obj)) {
}
What do I have to do in order to have it recognized:
You need to add
"lib": [ "es2017.object" ]
https://github.com/Microsoft/TypeScript/issues/8482#issuecomment-262847071