Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 337 Bytes

basename.md

File metadata and controls

13 lines (8 loc) · 337 Bytes

basename (function)

Return the last component of a path string.

Provides the same functionality as the unix binary of the same name.

Example: basename("/home/suchipi/something") returns "something", the last part.

declare function basename(path: string | Path): string;