(num)
| 26839 | } |
| 26840 | |
| 26841 | function isNumberInteger(num) { |
| 26842 | // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066 |
| 26843 | // (minus the assumption that `num` is a number) |
| 26844 | |
| 26845 | // eslint-disable-next-line no-bitwise |
| 26846 | return (num | 0) === num; |
| 26847 | } |
| 26848 | |
| 26849 | function countDecimals(num) { |
| 26850 | var numString = num.toString(); |