Merge pull request #524 from DannyNemer/patch-1

Clarify proper type casting for Numbers
This commit is contained in:
Jordan Harband
2015-09-25 07:21:27 -07:00

View File

@@ -1640,7 +1640,7 @@ Other Style Guides
const totalScore = String(this.reviewScore);
```
- [21.3](#21.3) <a name='21.3'></a> Use `parseInt` for Numbers and always with a radix for type casting.
- [21.3](#21.3) <a name='21.3'></a> Numbers: Use `Number` for type casting and `parseInt` always with a radix for parsing strings.
```javascript
const inputValue = '4';