removeExt()
const
removeExt: (filename
,ext
) =>string
Removes the specific ext extension from filename, if it has it. Otherwise it leaves it as is. As in all upath functions, it be .ext or ext.
Parameters
Parameter | Type | Description |
---|---|---|
|
|
string filename to remove extension to |
|
|
string extension to remove |
Returns
string