I am removing ramda from some code I've inherited as part of an effort to reduce the JavaScript size. But I'm stuck with the below because this line really baffles me as it apparently doesn't operate on any object.
var iterate = R.addIndex(R.forEach);
The relevant code looks like this:
var lis = $(el).find("ul.navbar-nav:not(.navbar-right) > li:not(.nav-more)");
var iterate = R.addIndex(R.forEach);
iterate(function(li) {
// Other code
}, lis);
How can I write it in vanilla JS?