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