* Return `true` if the given character is a number (0 to 9) * * @param {char} char * @returns {boolean}
(char)
| 162 | * @returns {boolean} |
| 163 | */ |
| 164 | static isDigit(char) { |
| 165 | return /\d/.test(char); |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Return `true` if the parameter is a number (or a number written as a string). |
no test coverage detected