From bbb72aea29f31eff670d9302d926ad773ac5a74b Mon Sep 17 00:00:00 2001 From: Micha Date: Fri, 10 Jan 2025 21:34:00 +0100 Subject: [PATCH] [typerscript/en] Iterating over an array iterates over all enumerable *string* properties (#5227) --- typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript.md b/typescript.md index e3b24ceb..b72bd4cd 100644 --- a/typescript.md +++ b/typescript.md @@ -271,7 +271,7 @@ for (const i of list) { // 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" } // Type Assertion