med-notes/.pnpm-store/v10/files/63/2db1be2e9f2807f453f2ce8bb1a44356f96065bbf1da38df9cc926dc4d79df1f79d3af4d48df639b15bc247dd52dd1b41c93fd5012c81797aac004b30d3b7e
2025-06-26 04:42:51 +00:00

15 lines
373 B
Plaintext

'use strict';
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);
}