25 lines
501 B
Markdown
25 lines
501 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [trim](./js-utils.trim.md)
|
|
|
|
## trim() function
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare function trim(val: string, max: number, tail?: string): string;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| val | string | |
|
|
| max | number | |
|
|
| tail | string | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
string
|
|
|