l00p
Getting useful loop information while looping.
This package has been created for help mapping items in, just say, React:
Without l00p:
...<div>somestuffcollection</div>...
With l00p:
...<div></div>...
Here the complete list of values provided while looping:
- index: The current index.
- first: A boolean true when is ther fist element of collection.
- last: A boolean true when is ther last element of collection.
- reverseIndex: The index from the end (
collection.lentgth - index
). - even: A boolean true when the index is even.
- odd: A boolean true when the index is odd.