export param { string } fileName returns { string } export default function getFileExtension ( fileName ) { const fileNameSplitted = fileName . toString ( ) . split ( '.' ) ; const extension = fileNameSplitted . pop ( ) ; if ( ! extension ) { return '' ; } return extension ; }