Avena Webapp API - v0.0.1
    Preparing search index...

    Function parseAssetNumberParam

    • Parses the asset_number route parameter.

      Only plain decimal digits are accepted, so "12abc", "-3", "1.5" and "" are rejected instead of being read as a different number by parseInt.

      Parameters

      • raw: string | null | undefined

        Parameter text from the URL.

      Returns number | null

      The asset number, or null when the text is not a non-negative integer.