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

27 lines
615 B
Markdown
Raw Normal View History

2020-03-29 14:10:40 +00:00
<!-- 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
2021-08-08 20:11:23 +00:00
Prefix `val` with `fill` until it is at least `min` characters.
2020-03-29 14:10:40 +00:00
<b>Signature:</b>
```typescript
export declare function leftPad(val: string, min?: number, fill?: string): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | string | |
2022-10-08 19:52:35 +00:00
| min | number | <i>(Optional)</i> |
| fill | string | <i>(Optional)</i> |
2020-03-29 14:10:40 +00:00
<b>Returns:</b>
string
2020-03-29 14:10:40 +00:00