function parseAndTestIsNumber(str) {
  const res = parseInt(str, 10);
  return !Number.isNaN(res);
}
Takes a string and tries to parseInt and does a isNaN check

@param {String} str The string to parse
@returns {Boolean} if it worked or not