Skip to content

Function: removeAllTrailingSlashes

EcomConfig.removeAllTrailingSlashes

removeAllTrailingSlashes(url): string

Removes all trailing slashes of provided url string.

Parameters

Name Type Description
url string URL to sanitize by removing all trailing slashes.

Returns

string


Last update: March 22, 2024