This website requires JavaScript.
Explore
Cloud
Chat
CI/CD
Help
Sign In
maxmustermann
/
TypeScript
Watch
1
Star
0
Fork
You've already forked TypeScript
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
91fedf4df1
TypeScript
/
tests
/
baselines
/
reference
/
for-of37.js
12 lines
173 B
TypeScript
Raw
Normal View
History
Unescape
Escape
In ES6, an Iterable should contextually type an array literal
2015-02-26 03:15:48 +01:00
//// [for-of37.ts]
var
map
=
new
Map
(
[
[
""
,
true
]
]
)
;
for
(
var
v
of
map
)
{
v
;
}
//// [for-of37.js]
Always preserve new lines for array and object literals and additional constructs like blocks.
2015-03-26 21:46:35 +01:00
var
map
=
new
Map
(
[
[
""
,
true
]
]
)
;
In ES6, an Iterable should contextually type an array literal
2015-02-26 03:15:48 +01:00
for
(
var
v
of
map
)
{
v
;
}
Reference in a new issue
Copy permalink