All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.node_modules.popper.js.src.utils.isNumeric.js Maven / Gradle / Ivy

There is a newer version: 2.14
Show newest version
/**
 * 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);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy