Function _decodeNumber

  • Parameters

    • value: unknown

      Value with unknown type

    Returns number | undefined

    Attempts to convert the passed value to a valid number, returns undefined in case cast fails

    A function which attempts to safely cast any value to a valid number