I have run the following lines in my console (once a jquery script has been loaded), and received the following results:
$(this)
> [Window]
$(this) != $(this)
> true
$(this) == $(this)
> false
$(this) === $(this)
> false
And I don't know what steps to take to figure out what is going on. My guess is that there is some object that holds a time based value which is changing, but I wonder if it's something different. I will try to compare the values in the meantime, but I was hoping someone might understand what is going on here.
Edited to address the point that I was unaware of the underlying implementation of $(arg). I did not know that it returned a new reference object. Therefore, I don't believe this is a duplicate of "How to determine equality for two JavaScript objects?".