* Return `true` if the parameter is an integer (and not a float). * * @param {*} n * @returns {boolean}
(n)
| 184 | * @returns {boolean} |
| 185 | */ |
| 186 | static isInt(n) { |
| 187 | return typeof n === 'number' && parseFloat(n) === parseInt(n, 10) && !isNaN(n); |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Return `true` if the parameter is a function. |
no outgoing calls
no test coverage detected