Repeats an array. Constructs a new array with the entries from the original repeated the given number of times.
A new array (does not mutate).
import {repeatArray} from '@augment-vir/common';const result = repeatArray(3, ['a', 'b', 'c']);// result is `['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']` Copy
import {repeatArray} from '@augment-vir/common';const result = repeatArray(3, ['a', 'b', 'c']);// result is `['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']`
@augment-vir/common
Repeats an array. Constructs a new array with the entries from the original repeated the given number of times.