Detect whether a value is a generator function. The is-generator-function package offers a performant and accurate way to determine if a given JavaScript value represents a generator function. It provides a single function that returns a boolean, indicating whether the input is, in fact, a generator function. This is particularly useful in scenarios where you need to dynamically handle different types of functions and treat generators distinctly.