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

Last change on this file since ff72ad2 was 57e58a3, checked in by ste08 <sjovanoska@…>, 4 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.