ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
56 lines (27 loc) • 738 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [stripTrailingSlash](./ibm-cloud-sdk-core.striptrailingslash.md)
## stripTrailingSlash() function
Strips trailing slashes from "url", if present.
**Signature:**
```typescript
export declare function stripTrailingSlash(url: string): string;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
url
</td><td>
string
</td><td>
the url string
</td></tr>
</tbody></table>
**Returns:**
string
the url with any trailing slashes removed