Last Updated: February 25, 2016
·
364
· edinella

Extract filename extension

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