You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionisGenerator(obj){returnobj&&(toString.call(obj)==="[object Generator]"||// this fallback is here for polyfill runtimes, like facebook/regenerator(obj.constructor&&'Generator'==obj.constructor.name))}
Currently I use
To detect a generator object which works in harmony but not in regenerator.
Is there an or clause I can add to feature detect generator objects from regenerator or should I duck test for
.next()
and.throw()
?This is similar to #48
The text was updated successfully, but these errors were encountered: