is_iterator(obj)
Return true if obj is an iterator, otherwise return false.
true
obj
false
function gen(x) letfn loop (n = x) { yield n loop(n + 1) } let xs = gen(10) is_iterator(xs) // true nth(23, xs) // 33
Core Module Index | Contents