I am writing my question again because earlier it made little sense and I wasn\'t very clear.
I am receiving data from API that looks something like this:
For typescript version 2.0 or higher, just modify the tsconfig.json file so the "lib" section includes "es6":
"lib": [ "es5", "es6", "dom", "es2015.collection" ]