1import { isNaN } from 'lodash';
4 * a version of parseInt that throws for NaN
5 * fun fact, parseInt also handles 0x-prefixed hex strings, assuming the radix
11export const convertToInt = (num, radix) => {
12 const res = parseInt(num, radix);
14 throw new Error('NaN');
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list