Final iterator spec

Andy Wingo wingo at
Mon Mar 3 01:11:39 PST 2014

On Sun 02 Mar 2014 04:18, Domenic Denicola <domenic at> 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.


More information about the es-discuss mailing list