Skip to content

Akrion/less.curious

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LESS for loop with index support

Based on Max Mikhailov "for" LESS loop this version simply exposes the array index as the second argument in the for loop. This comes in handly in quite a few situations where you have a relation between array indexes etc.

Please note that the index is not optional and it is a required part of the ".-each()" section now.

Example

.for(@yourArray);
.-each(@arrayItem, @arrayIndex) {
}

About

less "for" loop with index support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 100.0%