You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -914,7 +914,6 @@
914
914
```
915
915
916
916
- Use `parseInt` for Numbers and always with a radix for type casting.
917
-
- If for whatever reason you are doing something wild and `parseInt` is your bottleneck and need to use Bitshift for [performance reasons](http://jsperf.com/coercion-vs-casting/3), leave a comment explaining why and what you're doing.
918
917
919
918
```javascript
920
919
var inputValue = '4';
@@ -936,6 +935,9 @@
936
935
937
936
// good
938
937
var val = parseInt(inputValue, 10);
938
+
```
939
+
940
+
- If for whatever reason you are doing something wild and `parseInt` is your bottleneck and need to use Bitshift for [performance reasons](http://jsperf.com/coercion-vs-casting/3), leave a comment explaining why and what you're doing.
0 commit comments