f06cebe80afa38c614f316d4449fb36792e29e96e77e4fff60d96c113a01d8a35a99b39a6ecdfa2c3d4b91b253db71f41b71b35894b53c02faf56dd2dc9b2b 373 B

12345678910111213
  1. 'use strict';
  2. var utils = require('./../utils');
  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 utils.isObject(payload) && (payload.isAxiosError === true);
  11. };