|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
369 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | import 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 | */
|
|---|
| 12 | export default function isAxiosError(payload) {
|
|---|
| 13 | return utils.isObject(payload) && payload.isAxiosError === true;
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.