1
0
Fork 0
js-utils/docs/api/js-utils.leftpad.md

27 lines
615 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [leftPad](./js-utils.leftpad.md)
## leftPad() function
Prefix `val` with `fill` until it is at least `min` characters.
<b>Signature:</b>
```typescript
export declare function leftPad(val: string, min?: number, fill?: string): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | string | |
| min | number | <i>(Optional)</i> |
| fill | string | <i>(Optional)</i> |
<b>Returns:</b>
string