Is it possible to use only the second argument of a $.each function without having to pass both arguments to use it? Let's say I have a function like this:
$('.selector').each(function(index, element){
console.log(element);
});
But the linter doesn't like this and will throw this warning:
'index' is defined but never used.
I can just tell the linter to ignore the line, but I wanted to know if there's another way to use the second argument only, without having to declare both.