Skip to content

Instantly share code, notes, and snippets.

@edinella
Created October 18, 2012 19:38
Show Gist options
  • Save edinella/3914322 to your computer and use it in GitHub Desktop.
Save edinella/3914322 to your computer and use it in GitHub Desktop.
Extract extension from filename
var filename = 'github.txt';
var extension = filename.split('.').pop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment