method default.PlatformPath.extname
Jump to headingPlatformPath.extname(path: string): stringReturn the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
Parameters Jump to heading
Jump to headingpath: stringthe path to evaluate.
Return Type Jump to heading
stringThrows Jump to heading
TypeErrorif path is not a string.