Files
Speedtest-Tracker/conf/site/node_modules/popper.js/src/utils/isNumeric.js
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

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);
}