[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [leftPad](./js-utils.leftpad.md)
## leftPad() function
Signature:
```typescript
export declare function leftPad(val: string, min?: number, fill?: string): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | string
| |
| min | number
| |
| fill | string
| |
Returns:
`string`