Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120272160
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
Thu, Jul 3, 03:56
Size
373 B
Mime Type
text/x-java
Expires
Sat, Jul 5, 03:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27164989
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