$range

The `$range` operator outputs an array containing a sequence of integers according to user-defined inputs.

Syntax

{ $range: [ <start>, <end>, <step> ] }

Parameters

<start>numberrequired

An integer that specifies the start of the sequence.

<end>numberrequired

An integer that specifies the exclusive upper limit of the sequence.

<step>number

Optional integer that specifies the increment value. Defaults to 1.