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