Next example in VS2017 reported error: Property 'keys' does not exist on type 'any []'
[].keys()
Why error?
Version of Visual Studio 2017 - 15.6.4
Version of TypeScript tools - 15.6.20202.3
Version of TypeScript - 2.8
Next example in VS2017 reported error: Property 'keys' does not exist on type 'any []'
[].keys()
Why error?
Version of Visual Studio 2017 - 15.6.4
Version of TypeScript tools - 15.6.20202.3
Version of TypeScript - 2.8
The problem fixed after tsconfig.json changing.
tsconfig.json
"compilerOptions": {
..
"lib":["es2015"]
..
}