@mrboombastic/node-przelewy24
Version:
A simple library for connecting Przelewy24 service
14 lines (11 loc) • 373 B
JavaScript
;
var utils = require('./../utils');
/**
* 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
*/
module.exports = function isAxiosError(payload) {
return utils.isObject(payload) && (payload.isAxiosError === true);
};