a guest Feb 14th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Parse file extension
- let file = 'hello.world.jpg'
- let result = file.substring(file.lastIndexOf('.') + 1);
- console.log(result) // jpg
RAW Paste Data