"use strict";

exports.__esModule = true;
exports.default = number;
exports.isNumeric = isNumeric;
exports.isNaN = isNaN;

function number(value) {
  return /^\d+$/.test(value);
}

function isNumeric(val) {
  return /^\d+(\.\d+)?$/.test(val);
}

function isNaN(val) {
  if (Number.isNaN) {
    return Number.isNaN(val);
  } // eslint-disable-next-line no-self-compare


  return val !== val;
}