(size: number, value: T)
| 2 | * Create an array of arbitrary size that contains x times the same value |
| 3 | */ |
| 4 | export function arrayRepeat<T>(size: number, value: T): T[] { |
| 5 | return arrayGenerate(size, () => value); |
| 6 | } |
| 7 | |
| 8 | /** |
| 9 | * Create an array of arbitrary size by calling a function x times and saving its return value in the array |
nothing calls this directly
no test coverage detected