Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
I want to return the index each time I loop through
var portfolio = '<% _.each(projects, function(projects, index) { %><div id="<%= projects.iimage %>" class="anImage <%= (projects.index)== 1 ? "active visible" : "hidden" %> ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment