Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99785817
isAxiosError.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 26, 15:09
Size
373 B
Mime Type
text/x-java
Expires
Tue, Jan 28, 15:09 (2 d)
Engine
blob
Format
Raw Data
Handle
23821753
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
isAxiosError.js
View Options
'use strict';
import utils from './../utils.js';
/**
* Determines whether the payload is an error thrown by Axios
*
* @param {*} payload The value to test
*
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
*/
export default function isAxiosError(payload) {
return utils.isObject(payload) && (payload.isAxiosError === true);
}
Event Timeline
Log In to Comment