Hi all i was just wondering if JS has a range function which will return numbers defined in an offset. I'm not using jQuery, so pure JS would be the best solution for me.
I want to get a set of numbers in sets of 5 i.e.
- First set of numbers - 0 - 4
- Second set of numbers - 5 - 10
- Third set of numbers - 11 - 16
- And so on and so on
I was wondering if this is possible at all? I was also looking at the underscore library to see if there's any handy methods but i couldn't find anything related to this at all.