1.2.33 • Published 5 years ago

@clarketm/superset v1.2.33

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Set

NPM release

Set with superpowers! 💪

This data structure inherit all methods and properties from the Set built-in.

Individual Module Installation

Yarn

$ yarn add @clarketm/superset

Npm

$ npm install @clarketm/superset --save

API

constructor(iterable: Iterable)

Construct a Set

some(callback: Callback): boolean

Tests whether at least one element in the set passes the test implemented by the provided function

NameTypeAttributeDescription
callbackCallbackcallback function

every(callback: Callback): boolean

Test whether all elements in the set pass the test implemented by the provided function

NameTypeAttributeDescription
callbackCallbackcallback function

isSubset(setB: Set): boolean

Subset of a set

NameTypeAttributeDescription
setBSetSetB

isSuperset(setB: Set): boolean

Superset of a set

NameTypeAttributeDescription
setBSetSetB

isDisjoint(setB: Set): boolean

Disjoint of a set

NameTypeAttributeDescription
setBSetSetB

union(setB: Set): Set

Union of setA and setB

NameTypeAttributeDescription
setBSetSetB

intersection(setB: Set): Set

Intersection of setA and setB

NameTypeAttributeDescription
setBSetSetB

difference(setB: Set): Set

Difference of setA and setB

NameTypeAttributeDescription
setBSetSetB

symmetricDifference(setB: Set): Set

Symmetric difference of setA and setB

NameTypeAttributeDescription
setBSetSetB
1.2.33

5 years ago

1.2.32

5 years ago

1.2.31

6 years ago

1.2.25

6 years ago

1.2.21

6 years ago

1.2.20

6 years ago

1.2.18

6 years ago

1.2.17

6 years ago

1.2.16

6 years ago

1.2.15

6 years ago

1.2.14

6 years ago

1.2.13

6 years ago

1.2.11

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

0.0.1

6 years ago

1.1.5

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago