hd-utils
Version:
A handy utils for modern JS developers
8 lines (7 loc) • 333 B
TypeScript
/**
* @description It takes a string and get the extension file type.
* @example getFileExtensionFromString("fileName.txt") => txt
* @param {string} str - string - The string to get the file extension from.
* @returns The file extension of the string.
*/
export default function getFileExtensionFromString(str: string): string;