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 */ 9module.exports = function isAxiosError(payload) { 10 return (typeof payload === 'object') && (payload.isAxiosError === true); 11}; 12 13