function isGenerator(x) {
  return isObjectLike(x) && isFunction(x.throw) && isFunction(x.return) && isFunction(x.next)
}
Returns true if the input is a generator.
@param {*} x - The input to test
@returns {boolean}