function isGeneratorFunction(x) {
  return getType(x) === GENERATOR_FUNCTION
}
Is generator function
@param x
@return {boolean}
@example
   isGeneratorFunction(() => {}) =>  false
   isGeneratorFunction(function* () => {}) =>  true
   isGeneratorFunction(function * () {
     yield 'my-val'
   }))