Spaces:
Paused
Paused
Download node_modules/graphql/jsutils/isAsyncIterable.mjs from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/ca55ba5cae4dfcc523bdfd04453a4162c0091df2/node_modules/graphql/jsutils/isAsyncIterable.mjs
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@ca55ba5cae4dfcc523bdfd04453a4162c0091df2/node_modules/graphql/jsutils/isAsyncIterable.mjs
-
curl -L -o isAsyncIterable.mjs https://huggingface.co/spaces/sam522/GenAI_Course/resolve/ca55ba5cae4dfcc523bdfd04453a4162c0091df2/node_modules/graphql/jsutils/isAsyncIterable.mjs
363 Bytes
| /** | |
| * Returns true if the provided object implements the AsyncIterator protocol via | |
| * implementing a `Symbol.asyncIterator` method. | |
| */ | |
| export function isAsyncIterable(maybeAsyncIterable) { | |
| return ( | |
| typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 | |
| ? void 0 | |
| : maybeAsyncIterable[Symbol.asyncIterator]) === 'function' | |
| ); | |
| } | |