-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Closed
Description
At item 21.3, the guide reads:
Use
parseIntfor Numbers and always with a radix for type casting.
However, the example displays:
// good
const val = Number(inputValue);
// good
const val = parseInt(inputValue, 10);Question: Is the first of the above examples supposed to be // bad (not // good), or should the guide read "Use parseInt or Number for Numbers..."?
Thank you.
Metadata
Metadata
Assignees
Labels
No labels