function(e){let t=e.match(/(\d{3})/);return null!==t&&t[0]}

result

"983"