toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.collections
/
JsSet
Js
Set
js
open
external
class
JsSet
<
T
>
(
values
:
JsIterable
<
T
>
=
definedExternally
)
:
MutableSetLike
<
T
>
(
source
)
Members
Constructors
Js
Set
Link copied to clipboard
js
constructor
(
values
:
ReadonlyArray
<
T
>
)
constructor
(
values
:
JsIterable
<
T
>
=
definedExternally
)
Properties
size
Link copied to clipboard
js
open
override
val
size
:
Int
Functions
add
Link copied to clipboard
js
open
override
fun
add
(
value
:
T
)
clear
Link copied to clipboard
js
open
override
fun
clear
(
)
delete
Link copied to clipboard
js
open
override
fun
delete
(
value
:
T
)
:
Boolean
difference
Link copied to clipboard
js
fun
difference
(
other
:
ReadonlySetLike
<
T
>
)
:
JsSet
<
T
>
entries
Link copied to clipboard
js
open
override
fun
entries
(
)
:
JsIterator
<
JsTuple2
<
T
,
T
>
>
for
Each
Link copied to clipboard
js
open
override
fun
forEach
(
action
:
(
value
:
T
)
->
Unit
)
get
Link copied to clipboard
js
open
operator
fun
get
(
key
:
Symbol.iterator
)
:
(
)
->
JsIterator
<
T
>
has
Link copied to clipboard
js
open
override
fun
has
(
key
:
T
)
:
Boolean
intersection
Link copied to clipboard
js
fun
intersection
(
other
:
ReadonlySetLike
<
T
>
)
:
JsSet
<
T
>
is
Disjoint
From
Link copied to clipboard
js
fun
isDisjointFrom
(
other
:
ReadonlySetLike
<
T
>
)
:
Boolean
is
Subset
Of
Link copied to clipboard
js
fun
isSubsetOf
(
other
:
ReadonlySetLike
<
T
>
)
:
Boolean
is
Superset
Of
Link copied to clipboard
js
fun
isSupersetOf
(
other
:
ReadonlySetLike
<
T
>
)
:
Boolean
iterator
Link copied to clipboard
js
open
inline operator
fun
iterator
(
)
:
Iterator
<
T
>
keys
Link copied to clipboard
js
open
override
fun
keys
(
)
:
JsIterator
<
T
>
symmetric
Difference
Link copied to clipboard
js
fun
symmetricDifference
(
other
:
ReadonlySetLike
<
T
>
)
:
JsSet
<
T
>
union
Link copied to clipboard
js
fun
union
(
other
:
ReadonlySetLike
<
T
>
)
:
JsSet
<
T
>
values
Link copied to clipboard
js
open
override
fun
values
(
)
:
JsIterator
<
T
>