Simple JS Set is a JavaScript implementation of Set that can be used to house any type of JavaScript object. It is a simple set with the following API:
Constructor. Instantiate a new set with the given hashFunction (defaults to JSON.stringify).
Add an item to the set.
Remove an item from the set.
Return whether or not the item is contained in the set.
Return the number of unique items in the set.
Execute a function with each item in the set in context of thisObj.