getFileExtension
getFileExtension(
name):string|undefined
Defined in: src/components/controls/FileTree/fileTreeIcons.ts:126
Extracts the lowercased extension (without the dot) from a file name, or
undefined when there isn’t one. Dotfiles such as .env / .gitignore are
treated as having no extension (the leading dot is not a separator).
Parameters
name
string
Returns
string | undefined