get file extension from name file module javascript code example
Example: javascript get file extension
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"