Functions
repeat
▸ repeat<T
>(array
, n
): T
[]
Creates a new array repeating the given array n times
Type parameters
Parameters
Name | Type | Description |
---|
array | T [] | The array to repeat |
n | number | The number of times to repeat the array |
Returns
T
[]
The new array
Defined in
util/array.ts:9