node-telegram-api/lib/utils.js
2015-06-26 21:50:54 +04:30

4 lines
74 B
JavaScript

export function isNumber(string) {
return !isNaN(parseFloat(string));
}