diff options
Diffstat (limited to 'js/Utils.js')
| -rw-r--r-- | js/Utils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Utils.js b/js/Utils.js index 7cf582b2..fdf24c6b 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -23,3 +23,7 @@ function formatDate( date, params ) { // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString return new Date( date ).toLocaleString( 'en-US', options ); } + +function isNumeric(n) { + return !isNaN(parseFloat(n)) && isFinite(n); +}
\ No newline at end of file |
