Try to convert a string to an int, falling back to undefined if unable to.
String to convert to an int.
The int if it was able to convert, otherwise undefined.
Try to convert a string to an int, falling back to undefined if unable to.