Encountered a string, contains both number as well Character with space like
" 7, 4, B, 9"
let myStr = ' 7, 4, B, 9' Math.min.apply( null, myStr.match(/\d+/g) )
First we create the array using
match with a simple regex. Then we apply the
Math.min function to each element of the array.