• File: isAxiosError.js
  • Full Path: /var/www/nodejs/Notifications_Imali_API/node_modules/axios/lib/helpers/isAxiosError.js
  • Date Modified: 10/26/1985 3:15 PM
  • File size: 373 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';

var utils = require('./../utils');

/**
 * 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
 */
module.exports = function isAxiosError(payload) {
  return utils.isObject(payload) && (payload.isAxiosError === true);
};