Andy Wingo (2014-03-03T09:11:39.000Z)
On Sun 02 Mar 2014 04:18, Domenic Denicola <domenic at domenicdenicola.com> writes:

> You can just do `if (Symbol.iterator in potentialIterable)`.

Of course, this can introduce time-of-check-to-time-of-use bugs.
Actually calling @@iterator on the iterable is more reliable.

Andy
domenic at domenicdenicola.com (2014-03-06T23:03:42.928Z)
On Sun 02 Mar 2014 04:18, Domenic Denicola <domenic at domenicdenicola.com> writes:

> You can just do `if (Symbol.iterator in potentialIterable)`.

Of course, this can introduce time-of-check-to-time-of-use bugs.
Actually calling @@iterator on the iterable is more reliable.