Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
arange(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
arange
Method · 0.80
abs
Method · 0.45
Tested by
no test coverage detected