Sign in
cobalt
/
cobalt
/
1bdf8b5470dc937a8c92ce7e2f6d3392c6a1180c
/
.
/
third_party
/
devtools
/
node_modules
/
rxjs
/
src
/
internal
/
util
/
isIterable.ts
blob: fc8fd07e4ae77ef66b34033e51569a6917997b19 [
file
] [
log
] [
blame
]
import
{
iterator
as
Symbol_iterator
}
from
'../symbol/iterator'
;
/** Identifies an input as being an Iterable */
export
function
isIterable
(
input
:
any
):
input
is
Iterable
<any>
{
return
input
&&
typeof
input
[
Symbol_iterator
]
===
'function'
;
}