Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const xRange = (min, max, step) => {
- step = step || 1;
- const { low, high } = (max > min) ? { low: min, high: max } : { low: max, high: min };
- return [...Array(Math.ceil(((high-low)+1)/step)).keys()].map((x) => (x * step) + low)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement