source: node_modules/axios/lib/helpers/isAxiosError.js@ e48199a

main
Last change on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 373 bytes
Line 
1'use strict';
2
3import utils from './../utils.js';
4
5/**
6 * Determines whether the payload is an error thrown by Axios
7 *
8 * @param {*} payload The value to test
9 *
10 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
11 */
12export default function isAxiosError(payload) {
13 return utils.isObject(payload) && (payload.isAxiosError === true);
14}
Note: See TracBrowser for help on using the repository browser.