Is there a slick way to convert a string to a number or null if it cannot be represented by a number? I have been using the method below:
if _.isNaN( Number(mystring) ) then null else Number(mystring)
Which works, but I'm curious if there is something that is shorter? Possible, or is this the most succinct way?