Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
Determine if a function is a native generator function.
Check whether a value is a generator or generator function
Detect native generator function support.
Returns an arbitrary generator function, or undefined if generator syntax is unsupported.