25 lines
542 B
Markdown
25 lines
542 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 | <code>string</code> | |
|
||
|
| max | <code>number</code> | |
|
||
|
| tail | <code>string</code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`string`
|
||
|
|