Сравнение переменной с самим собой
Я наткнулся на этот polyfill Array.prototype.includes.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes, Есть ли причина для сравнения переменных с собой в строке 21,22?
if (searchElement === currentElement ||
(searchElement !== searchElement && currentElement !== currentElement)) {
return true;
}