getFileType()
Function: getFileType()
Section titled “Function: getFileType()”function getFileType(url): "JS" | "CSS" | "Unknown";Gets the file type from a URL.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
url | any |
Returns
Section titled “Returns”"JS" | "CSS" | "Unknown"
“JS”, “CSS”, or “Unknown”