Builder
Last updated
Last updated
[data/array/Builder]
Builds an array of identical items. Example:
"Foo"@0 recieved via item
3@0 recieved via count
["Foo", "Foo", "Foo"]@0 sent via array
More: https://github.com/Cranq-io/cranq-tutorials/tree/main/reference/2_constructing_data/2_2_builders
Keywords: create, new, repeat
item: any
Receives item to be added to the array. Example: "Foo"
count: number
Receives the number of times the item is to be add to the array. Example: 3
array: any[]
Sends the built array. Example: ["Foo", "Foo", "Foo"]