bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
16 lines (14 loc) • 315 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isNumeric;
/**
* determines whether `val` is a numeric value
* @name isNumeric
* @param {*} val
* @return {boolean}
*/
function isNumeric(val) {
return !Number.isNaN(parseFloat(val)) && Number.isFinite(val);
}
;