UNPKG

phrase-engine

Version:

Language files on steroids for conversational UIs that aren't boring.

20 lines 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function* range(stop, depth, state) { if (depth >= state.data.length) { state.data.push({ i: 0 }); } const stop_actual = stop - 1; let i = state.data[depth].i; while (i < stop_actual) { yield i; i++; state.data[depth].i = i; } yield stop_actual; state.data[depth].i = 0; } exports.range = range; //# sourceMappingURL=range.js.map