diff --git a/tsguide.html b/tsguide.html index d96372f03..3d1046fb0 100644 --- a/tsguide.html +++ b/tsguide.html @@ -1562,7 +1562,7 @@

Prefer passing arrow functions the named callback.

// GOOD: Arguments are explicitly passed to the callback
-const numbers = ['11', '5', '3'].map((n) => parseInt(n));
+const numbers = ['11', '5', '3'].map((n) => parseInt(n, 10));
 // > [11, 5, 3]
 
 // GOOD: Function is locally defined and is designed to be used as a callback