MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / range.js

File range.js

src/includes/functions/array/range.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1arange(start, end, step, offset) {
2 const len = (Math.abs(end - start) + ((offset || 0) * 2)) / (step || 1) + 1;
3 const direction = start < end ? 1 : -1;
4 const startingPoint = start - (direction * (offset || 0));

Callers

nothing calls this directly

Calls 2

arangeMethod · 0.80
absMethod · 0.45

Tested by

no test coverage detected