Returns the extension of a path, including the leading dot.
extname("/app/data/save.json") // ".json"extname("readme") // "" Copy
extname("/app/data/save.json") // ".json"extname("readme") // ""
Returns the extension of a path, including the leading dot.