See String.prototype.contains → String.prototype.includes because mootools extended the String prototype[1]
[1] - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
You can rearrange the code to accept a context as the first argument if you are worried.
See String.prototype.contains → String.prototype.includes because mootools extended the String prototype[1]
[1] - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...