Download node_modules/axios/lib/helpers/isAxiosError.js from xxsxx/cld: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/axios/lib/helpers/isAxiosError.js
- Command line
-
hf download hf://spaces/xxsxx/cld/node_modules/axios/lib/helpers/isAxiosError.js
-
curl -L -o isAxiosError.js https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/axios/lib/helpers/isAxiosError.js
343 Bytes
| ; | |
| /** | |
| * Determines whether the payload is an error thrown by Axios | |
| * | |
| * @param {*} payload The value to test | |
| * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false | |
| */ | |
| module.exports = function isAxiosError(payload) { | |
| return (typeof payload === 'object') && (payload.isAxiosError === true); | |
| }; | |