Skip to content

Commit

Permalink
fix(for): pass index to fn()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Nov 26, 2023
1 parent 457fc84 commit 46ba38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/one.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function loop(
parentNode.append(clone)
}

fn?.({ el: clone, item })
fn?.({ el: clone, item, index })
})
}

Expand Down

0 comments on commit 46ba38a

Please sign in to comment.