Helper to obtain the integer value using base 10 conversion from a string,
also handles null, undefined and Nan cases which will all return the
default value.
Parameters
Optionalvalue: string | number
The string or numeric value to get the integer value from
Helper to obtain the integer value using base 10 conversion from a string, also handles
null
,undefined
andNan
cases which will all return the default value.