1.2.33 • Published 7 years ago

@clarketm/superset v1.2.33

Weekly downloads
2
License
MIT
Repository
-
Last release
7 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

7 years ago

1.2.32

7 years ago

1.2.31

7 years ago

1.2.25

7 years ago

1.2.21

7 years ago

1.2.20

7 years ago

1.2.18

7 years ago

1.2.17

7 years ago

1.2.16

7 years ago

1.2.15

7 years ago

1.2.14

7 years ago

1.2.13

7 years ago

1.2.11

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

0.0.1

7 years ago

1.1.5

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago