main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
373 bytes
|
Rev | Line | |
---|
[d565449] | 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.