Using the first() method on a collection of elements displays wierd behavior.
$("button.overlay").on("click",function(e){
e.stopPropagation();
let i = $(e.target).closest('.style-display').children('.modal-info-container');
let k = i[0];
let j = i.first();
});
To my understanding using [0] and .first() should give the same result. What happens is that .first() returns the unchanged collection instead. What am I doing wrong?