set-ops
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Set-ops

Implementation of standard set operations for ES6 sets.

Installation

Via npm

npm i set-ops

Requires a ES6 compliant JS installation.

Usage

It exposes the 3 standard operations for sets.

var {union, intersection, difference} = require('set-ops')

union(new Set([1,3]), new Set([2,3])) // = 1, 2, 3
intersection(new Set([1,3]), new Set([2,3])) // = 3
difference(new Set([1,3]), new Set([2,3])) // = 1

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.01
1.1.00
1.0.00

Package Sidebar

Install

npm i set-ops

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • littlehelicase