actor/base/src/main/resources/js/helpers.js
function $range(start, length) {
    if (arguments.length === 1) {
        length = arguments[0];
        start = 0;
    }
    return Array.apply(null, Array(length)).map(function (_, index) {
        return index + start;
    });
}
function $range(start, length) {
    if (arguments.length === 1) {
        length = arguments[0];
        start = 0;
    }
    return Array.apply(null, Array(length)).map(function (_, index) {
        return index + start;
    });
}
Create and return an array of integers.
Usage:
$range(5, 3); // [5,6,7]
$range(5);    // [0,1,2,3,4]