MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / tolerantRange

Function tolerantRange

test/README.example.spec.ts:1013–1017  ·  view source on GitHub ↗
(start: number, stop: number)

Source from the content-addressed store, hash-verified

1011 });
1012
1013 const tolerantRange = (start: number, stop: number) =>
1014 range(start, stop).catchAll((error, message) => {
1015 console.warn(`Error(${error}): ${message || ""}`);
1016 return [] as number[];
1017 });
1018
1019 const spyWarn = vi.spyOn(console, "warn").mockImplementation(() => {});
1020 expect(

Callers 1

Calls 2

rangeFunction · 0.70
catchAllMethod · 0.65

Tested by

no test coverage detected