Returns the file extension of a file, or undefined
file name to get extension of
the file extension, or undefined
getFileExtension('test.ext'); // 'ext'getFileExtension('test.doc.ext'); // 'ext'getFileExtension('test'); // undefined Copy
getFileExtension('test.ext'); // 'ext'getFileExtension('test.doc.ext'); // 'ext'getFileExtension('test'); // undefined
Returns the file extension of a file, or undefined