function isNumeric(n) {
  /* eslint-disable */
  var t = (0, _typeof2.default)(n);
  return t == 'number' ? !isNaN(n) && isFinite(n) : t == 'string' ? !n.length ? false : n.length == 1 ? /\d/.test(n) : /^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(n) : t == 'object' ? !!n && typeof n.valueOf() == 'number' && !(n instanceof Date) : false;
}
Checks if value of n is a numeric one
http://jsperf.com/isnan-vs-isnumeric/4
@param n
@returns {boolean}