Skip to content

Commit

Permalink
Merge pull request #524 from DannyNemer/patch-1
Browse files Browse the repository at this point in the history
Clarify proper type casting for Numbers
  • Loading branch information
ljharb committed Sep 25, 2015
2 parents 58c901c + 7d0e236 commit d14e8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit d14e8b7

Please sign in to comment.