Sequence Generator

This utility allows a sequence (start...end, inclusive) to be generated using a JavaScript template literal. The input is evaluated in two phases. First, the following variables are made available to the template literal expression:

${ i }: sequence value (start, start+step, start+2*step, ...).
${ n }: iteration index (0, 1, 2, ...).
${ nn }: inverted iteration index (5, 4, 3, ...).

Then the result of the template literal evaluation can be further evaluated as a JavaScript expression; and, optionally, output as a JSON string.


Reset