Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joonhocho/relationset
Compare two sets (array of items) and get relationships between them (Disjoint | Intersecting | Subset | Superset | Equal)
https://github.com/joonhocho/relationset
Last synced: about 1 month ago
JSON representation
Compare two sets (array of items) and get relationships between them (Disjoint | Intersecting | Subset | Superset | Equal)
- Host: GitHub
- URL: https://github.com/joonhocho/relationset
- Owner: joonhocho
- License: mit
- Created: 2019-08-10T19:30:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:51:25.000Z (almost 2 years ago)
- Last Synced: 2024-04-30T02:44:17.949Z (8 months ago)
- Language: TypeScript
- Size: 783 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# relationset
Compare two sets (array of items) and get relationships between them (Disjoint | Intersecting | Subset | Superset | Equal).[![npm version](https://badge.fury.io/js/relationset.svg)](https://badge.fury.io/js/relationset)
[![npm](https://img.shields.io/npm/dw/relationset.svg)](https://www.npmjs.com/package/relationset)
![npm type definitions](https://img.shields.io/npm/types/relationset.svg)
[![Build Status](https://travis-ci.org/joonhocho/relationset.svg?branch=master)](https://travis-ci.org/joonhocho/relationset)
[![Dependency Status](https://david-dm.org/joonhocho/relationset.svg)](https://david-dm.org/joonhocho/relationset)
[![GitHub](https://img.shields.io/github/license/joonhocho/relationset.svg)](https://github.com/joonhocho/relationset/blob/master/LICENSE)## Get Started
```
npm install -D relationset
```
or
```
yarn add -D relationset
```## How to Use
```typescript
import {
getRelationOfFiniteSets,
getRelationOfKeySets,
getRelationOfSets,
getRelationOfUnitSetToNonEmptySet,
haveCommonElements,
haveCommonKeys,
} from 'relationset';
```## License
[MIT License](https://github.com/joonhocho/relationset/blob/master/LICENSE)