Function getFileExtension

Gets the file extension from a given URL.

If the URL is empty or undefined.

  • Parameters

    • url: string

      The URL to extract the file extension from.

    Returns string

    The file extension, or an empty string if no extension is found.