Allen Wirfs-Brock (2013-10-31T18:01:48.000Z)
domenic at domenicdenicola.com (2013-11-12T18:47:55.309Z)
What are the use cases for things like 'isGenerator'. When and why would you need to know that an object upon which you are going to invoke the Iterator interface was/wasn't implemented by a generator. If the reason is to know whether or not you can use the throw method (the only real difference between the generator object interface and the Iterator interface) you can test: 'throw' in possibleGenerator In general this sort of `isFoo` or `obj.constructor === Foo` class test is a bad smell in dynamic class based languages and tends to be a reflection of static nominal type thinking (which is fine in its own context, but JS is has a dynamic class model).