From 7d0e236b596e85ec42a8747913b0cf57c113522b Mon Sep 17 00:00:00 2001 From: Danny Nemer Date: Fri, 25 Sep 2015 09:59:08 -0400 Subject: [PATCH] Clarify proper type casting for Numbers Clarifies when to use `Number` vs. `parseInt` for Number type casting. Fixes: #523 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c376283..243311b7 100644 --- a/README.md +++ b/README.md @@ -1640,7 +1640,7 @@ Other Style Guides const totalScore = String(this.reviewScore); ``` - - [21.3](#21.3) Use `parseInt` for Numbers and always with a radix for type casting. + - [21.3](#21.3) Numbers: Use `Number` for type casting and `parseInt` always with a radix for parsing strings. ```javascript const inputValue = '4';