isNumeric.js 233 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 /** * 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); }