CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
isAxiosError.js15 linesDownload Raw Back to helpers
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