how to check validation for file extension .csv in angular

JavaScript
 csv file validatoin
 
Source

Also in JavaScript: