Sign in
cobalt
/
cobalt
/
cc19caab3101a025a2ae4db11601ed3496c7d730
/
.
/
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'
;
}