Policies & Guidelines

REPEAT

Repeat item

Description

Constructs an array with a certain value repeated the given number of times

Function signature

REPEAT(item: , count: Number) => Array

Parameter

Description

Item

Item to be repeated

Count

Number of times the item will be in the array

Examples

Formula

Return value

REPEAT("three", 3)

["three","three","three"]

REPEAT({foo: "bar"}, 2)

[{"foo":"bar"},{"foo":"bar"}]

REPEAT("hello", 0)

[]