Spaces:
Paused
Paused
Download node_modules/graphql/jsutils/isPromise.mjs from sam522/GenAI_Course: direct link, hf CLI and curl.
- Browser
- Download file 256 Bytes
-
https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/jsutils/isPromise.mjs
- Command line
-
hf download hf://spaces/sam522/GenAI_Course@bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/jsutils/isPromise.mjs
-
curl -L -o isPromise.mjs https://huggingface.co/spaces/sam522/GenAI_Course/resolve/bbf0eafbb40cb551e2f40f8ad8a90a585be08221/node_modules/graphql/jsutils/isPromise.mjs
256 Bytes
| /** | |
| * Returns true if the value acts like a Promise, i.e. has a "then" function, | |
| * otherwise returns false. | |
| */ | |
| export function isPromise(value) { | |
| return ( | |
| typeof (value === null || value === void 0 ? void 0 : value.then) === | |
| 'function' | |
| ); | |
| } | |