javascript implementation to remove duplicates a node of the doubly linked list from an unsorted doubly linked list
class Node { constructor ( ) { this . data = 0 ; this . prev = null ; this . next = null ; } }