Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/axios/lib/helpers/isAxiosError.js
1126 views
1
'use strict';
2
3
/**
4
* Determines whether the payload is an error thrown by Axios
5
*
6
* @param {*} payload The value to test
7
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
8
*/
9
module.exports = function isAxiosError(payload) {
10
return (typeof payload === 'object') && (payload.isAxiosError === true);
11
};
12
13