toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.iterable
/
JsIterator
Js
Iterator
abstract
external
class
JsIterator
<
out
T
>
:
JsIteratorLike
<
T
>
,
JsIterable
<
T
>
(
source
)
Inheritors
Generator
Members
Members & Extensions
Constructors
Js
Iterator
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
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
abstract
fun
next
(
)
:
IteratorResult
<
T
,
*
>
some
Link copied to clipboard
fun
some
(
predicate
:
(
T
)
->
Boolean
)
:
Boolean
take
Link copied to clipboard
fun
take
(
n
:
Int
)
:
JsIterator
<
T
>
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
>