mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-28 16:06:35 +01:00
11 lines
233 B
JavaScript
Vendored
11 lines
233 B
JavaScript
Vendored
/**
|
|
* Tells if a given input is a number
|
|
* @method
|
|
* @memberof Popper.Utils
|
|
* @param {*} input to check
|
|
* @return {Boolean}
|
|
*/
|
|
export default function isNumeric(n) {
|
|
return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
|
|
}
|