MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / range

Function range

lib/utils.ts:632–644  ·  view source on GitHub ↗
(start: number, end?: number)

Source from the content-addressed store, hash-verified

630}
631
632export function range(start: number, end?: number): number[] {
633 /** Identical to basic usage of the Python range() function **/
634 if (typeof end === "undefined") {
635 end = start;
636 start = 0;
637 }
638
639 if (start >= end) {
640 return [];
641 }
642
643 return Array.from({ length: end - start }, (_, i) => i + start);
644}

Callers 1

handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected