Implementing the DOM contains() method
As per MDN,   The Node.contains() method returns a Boolean value indicating whether a node is a...
Tags: javascript, uiweekly, algorithms, computerscience