Skip to content

Commit d14e8b7

Browse files
committed
Merge pull request airbnb#524 from DannyNemer/patch-1
Clarify proper type casting for Numbers
2 parents 58c901c + 7d0e236 commit d14e8b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ Other Style Guides
16401640
const totalScore = String(this.reviewScore);
16411641
```
16421642
1643-
- [21.3](#21.3) <a name='21.3'></a> Use `parseInt` for Numbers and always with a radix for type casting.
1643+
- [21.3](#21.3) <a name='21.3'></a> Numbers: Use `Number` for type casting and `parseInt` always with a radix for parsing strings.
16441644
16451645
```javascript
16461646
const inputValue = '4';

0 commit comments

Comments
 (0)