relationset

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


Keywords
relationship, set, array, disjoint, intersection, subset, superset, equal, identity, TypeScript
License
MIT
Install
npm install relationset@0.0.2

Documentation

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