As the question says, what exactly is the function of the !== operator? (Exclaimation, Equals, Equals).
Yes there are two equal signs. I found it here.
function endsWith(str, suffix) { return str.indexOf(suffix, str.length - suffix.length) !== -1; }
Is it a typo? I doubt it. It is an old post and with so many upvotes, it should surely have been corrected one day or the other.
Or is it a valid operator? If so, what does it do?