A simple extension of the inbuilt javascript Set object, adding some set operation functions.
As well as all the standard javascript functions, the BetterSet adds these set operation functions:
- addAll
- complement
- deleteAll
- difference
- equals
- intersection
- union
It also includes convenience functions which mimic Array behaviour.
- map
- reduce