This commit is contained in:
zznty
2024-05-30 16:04:19 +07:00
commit 4146027cb7
797 changed files with 116788 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
'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);
}