New article alert 🚀 about implementing the DOM contains() method. We will explore 4 ways to do so where first 2 are fairly intuitive from a DS/Algo perspective and other 2 take real advantage of DOM node properties.
https://blog.lakbychance.com/implementing-the-dom-contains-method
https://blog.lakbychance.com/implementing-the-dom-contains-method