set-extended
v0.0.7
Published
This module extends the default functionalities of the Set class built in JS
Downloads
4
Maintainers
Readme
set-extended
This module's aim is to expand the already available functionalities of the Set Class in JS to cover most of the usual operators when using applied Set Theory, such as: Union, Intersection or Symetric Difference of sets, Power Set, Cartesian Product, and so on.
Installation
set-extended is available on npm package manager.
npm install set-extended
Usage
First, import the module. I like to call it SuperSet, as it gives super powers to the Set class.
const SuperSet = require('set-extended');
Evaluate if a set is a subset of a set:
MySet.subsetOf(A)