summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2019-08-03 10:19:24 -0700
committerGitHub <noreply@github.com>2019-08-03 10:19:24 -0700
commita8448c0630b050709a1932c1f6f9b189cfc844b4 (patch)
tree26dc1102a6ec1188ad9b07c824afbb0eb2d39da0
parent4237278e945f05a03f12bc51a4c1a61049f15dc2 (diff)
parent7fa8cc63c85f331e81a51443d9a81a9e058e8f42 (diff)
Merge pull request #3585 from monis0395/patch-2
[typescript/en] Fixed int array output which was shown as string
-rw-r--r--typescript.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index 293a4a35..cf2111d5 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -248,13 +248,13 @@ for (const val of arrayOfAnyType) {
let list = [4, 5, 6];
for (const i of list) {
- console.log(i); // "4", "5", "6"
+ console.log(i); // 4, 5, 6
}
// for..in statement
// iterate over the list of keys on the object being iterated
for (const i in list) {
- console.log(i); // "0", "1", "2",
+ console.log(i); // 0, 1, 2
}