repo_description: A reference implementation of GraphQL for JavaScript
repo_topics: graphql graphql-js
code: /**
   * Returns true if the provided object implements the AsyncIterator protocol via
   * implementing a `Symbol.asyncIterator` method.
   */
  export function isAsyncIterable(
    maybeAsyncIterable: any,
  ): maybeAsyncIterable is AsyncIterable<unknown> {
    return typeof maybeAsyncIterable?.[Symbol.asyncIterator] === 'function';
  }
  