FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.getExtension() function

string fcf.getExtension(string a_path)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Returns an extension for a file path

Arguments

string a_path
- A file path
Result
string
- A file extension

Example: Function application

let result = fcf.getExtension("directory/file.txt"); console.log(result);

Output:

txt