@Repeat()
New in 2.0Generate an array by repeating a value N times
ArraySince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| value | — | — | The value to repeat | |
| count | — | — | Number of repetitions, default 1 |
Usage
@Repeat(arg0,arg1)Repeat a value N times
Example:
@Repeat(hello,3)
Output:
["hello","hello","hello"]@Repeat(arg0)Repeat a value once
Example:
@Repeat(hello)
Output:
["hello"]