SyntaxFix
Write A Post
Hire A Developer
Questions
var fileName = "something.extension"; fileName.slice(0, -path.extname(fileName).length) // === "something"