opusdev/vector-similarity-api
1
1'use strict';2 3import utils from '../utils.js';4 5/**6 * Determines whether the payload is an error thrown by Axios7 *8 * @param {*} payload The value to test9 *10 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false11 */12export default function isAxiosError(payload) {13 return utils.isObject(payload) && (payload.isAxiosError === true);14}15 