repeat
repeat a string n times
| Parameter | type | Description |
|---|---|---|
| str | string | the string to repeat |
| n | number | the number of times to repeat |
| Returns | string | the repeated string |
ts
import { repeat } from 'func-dash'
repeat('a', 3) // 'aaa'