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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With