Download scripts/node_modules/axios/lib/helpers/isAxiosError.js from techprotrade/annator: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/techprotrade/annator/resolve/ef06ee541af7e1d439d7edb07084a4b981ecdba2/scripts/node_modules/axios/lib/helpers/isAxiosError.js
- Command line
-
hf download hf://techprotrade/annator@ef06ee541af7e1d439d7edb07084a4b981ecdba2/scripts/node_modules/axios/lib/helpers/isAxiosError.js
-
curl -L -o isAxiosError.js https://huggingface.co/techprotrade/annator/resolve/ef06ee541af7e1d439d7edb07084a4b981ecdba2/scripts/node_modules/axios/lib/helpers/isAxiosError.js
369 Bytes
| ; | |
| import utils from '../utils.js'; | |
| /** | |
| * 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 | |
| */ | |
| export default function isAxiosError(payload) { | |
| return utils.isObject(payload) && payload.isAxiosError === true; | |
| } | |