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