Extract filename extension
var filename = 'github.txt';
var extension = filename.split('.').pop();
Written by Ezequias Dinella
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#