Function getIntValue

  • 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

    • Optional value: string | number

      The string or numeric value to get the integer value from

    • Optional defValue: number

      The default value if unsuccessful

    Returns number

    The default or parsed value.