Detects whether the passed value is either kind of generator function, async or non-async.
value
Optional
An optionally passed value of any type.
A boolean value which indicates whether the tested value is either an async or a non-async generator function.
Detects whether the passed
valueis either kind of generator function, async or non-async.