Examples
getFileExtension('/assets/hero.sprite.png') // 'png'
getFileExtension('README') // 'README'Function
getFileExtension(url: string): stringReturns the final dot-delimited segment of a string.
This helper does not isolate a path segment before looking for a dot. If the input contains no dot, it returns the entire input; if it ends in a dot, it returns an empty string. Query strings and backslashes are treated as normal characters.
getFileExtension('/assets/hero.sprite.png') // 'png'
getFileExtension('README') // 'README'