* Return `true` if the parameter is a number (or a number written as a string). * * @param {*} n * @returns {boolean}
(n)
| 152 | * @returns {boolean} |
| 153 | */ |
| 154 | static isNumber(n) { |
| 155 | return !this.isArray(n) && !isNaN(parseFloat(n)) && isFinite(n); |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Return `true` if the given character is a number (0 to 9) |
no test coverage detected