Last Updated: February 25, 2016
·
361
· edinella

Extract filename extension

var filename = 'github.txt';
var extension = filename.split('.').pop();