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