Get the file extension from a file name
JavaScript
const ext = (fileName) => fileName.split('.').pop()TypeScript
const ext = (fileName: string): string => fileName.split('.').pop()const ext = (fileName) => fileName.split('.').pop()const ext = (fileName: string): string => fileName.split('.').pop()