circular-at
Version:
Access array items at any positive or negative index. If the index is out of bounds, it will be wrapped around the length of the array.
6 lines (5 loc) • 189 B
JavaScript
Access array items at any positive or negative index. If the index is out of bounds, it will be wrapped around the length of the array.