Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including relationset with all npm packages installed. Try it out:

require("tslib/package.json"); // tslib is a peer dependency. var relationset = require("relationset")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

relationset v0.0.3

Compare two sets (array of items) and get relationships between them (Disjoint | Intersecting | Subset | Superset | Equal)

relationset

Compare two sets (array of items) and get relationships between them (Disjoint | Intersecting | Subset | Superset | Equal).

npm version npm npm type definitions Build Status Dependency Status GitHub

Get Started

npm install -D relationset

or

yarn add -D relationset

How to Use

import {
  getRelationOfFiniteSets,
  getRelationOfKeySets,
  getRelationOfSets,
  getRelationOfUnitSetToNonEmptySet,
  haveCommonElements,
  haveCommonKeys,
} from 'relationset';

License

MIT License

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free