188
rated 0 times
[
193]
[
5]
/ answers: 1 / hits: 167989
/ 8 Years ago, mon, july 4, 2016, 12:00:00
I have this:
map = ranks.map((row, r) => (
row.map((rank, i) => {
return [element(r, i, state, rank, toggled, onClick)];
})
));
It maps through a 2-dimentional array.
After each row, I'd like to insert <div class=clearfix></div>
.
I think, if I could somehow get the last index for each row, so I will be able to use it in the row map callback. Can someone show me how to do it?
More From » arrays