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/fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/axios/lib/helpers/isAxiosError.js
- Command line
-
hf download hf://techprotrade/annator@fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/axios/lib/helpers/isAxiosError.js
-
curl -L -o isAxiosError.js https://huggingface.co/techprotrade/annator/resolve/fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/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; | |
| } | |