toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.generator
/
Generator
Generator
external
class
Generator
<
out
T
,
TReturn
,
in
TNext
>
:
JsIterator
<
T
>
(
source
)
Members
Members & Extensions
Functions
as
Sequence
Link copied to clipboard
fun
<
T
>
JsIterator
<
T
>
.
asSequence
(
)
:
Sequence
<
T
>
drop
Link copied to clipboard
fun
drop
(
n
:
Int
)
:
JsIterator
<
T
>
every
Link copied to clipboard
fun
every
(
predicate
:
(
T
)
->
Boolean
)
:
Boolean
filter
Link copied to clipboard
fun
filter
(
predicate
:
(
T
)
->
Boolean
)
:
JsIterator
<
T
>
find
Link copied to clipboard
fun
find
(
predicate
:
(
T
)
->
Boolean
)
:
T
?
flat
Map
Link copied to clipboard
fun
<
R
>
flatMap
(
transform
:
(
T
)
->
JsIterable
<
R
>
)
:
JsIterator
<
R
>
fun
<
R
>
flatMap
(
transform
:
(
T
)
->
ReadonlyArray
<
R
>
)
:
JsIterator
<
R
>
for
Each
Link copied to clipboard
fun
forEach
(
action
:
(
item
:
T
)
->
Unit
)
get
Link copied to clipboard
open
operator
fun
get
(
key
:
Symbol.iterator
)
:
(
)
->
JsIterator
<
T
>
iterator
Link copied to clipboard
open
inline operator override
fun
iterator
(
)
:
Iterator
<
T
>
map
Link copied to clipboard
fun
<
R
>
map
(
transform
:
(
T
)
->
R
)
:
JsIterator
<
R
>
next
Link copied to clipboard
open
override
fun
next
(
)
:
IteratorResult
<
T
,
TReturn
>
fun
next
(
value
:
TNext
)
:
IteratorResult
<
T
,
TReturn
>
return
Link copied to clipboard
fun
return
(
value
:
TReturn
)
:
IteratorResult
<
T
,
TReturn
>
some
Link copied to clipboard
fun
some
(
predicate
:
(
T
)
->
Boolean
)
:
Boolean
take
Link copied to clipboard
fun
take
(
n
:
Int
)
:
JsIterator
<
T
>
throw
Link copied to clipboard
fun
throw
(
error
:
JsError
)
:
IteratorResult
<
T
,
TReturn
>
to
Array
Link copied to clipboard
fun
<
T
>
JsIterator
<
T
>
.
toArray
(
)
:
ReadonlyArray
<
T
>
to
List
Link copied to clipboard
fun
<
T
>
JsIterator
<
T
>
.
toList
(
)
:
List
<
T
>
to
Set
Link copied to clipboard
fun
<
T
>
JsIterator
<
T
>
.
toSet
(
)
:
Set
<
T
>