You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Arthur Guiot edited this page Aug 16, 2017
·
4 revisions
How does it work?
This function is made to create an array containing every integer between 0 and the number you choose. Which means that if you choose 5, this function will return you:
[0,1,2,3,4,5]
How to use it?
This function will be super useful when you're dealing with these kinds of for loop:
for(letiinarray){
...
}
By the way, this for loop can be emulated by the $.forIn() function.
So, as an example, let's show how you can use the $.range() function in this kind of for loop: