Sha256: f3bd5fe3df8960d251f8ca86ff0af4d62f6109898cbf6a4068b0f93b279af4b4
Contents?: true
Size: 343 Bytes
Versions: 9
Compression:
Stored size: 343 Bytes
Contents
'use strict'; /** * 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 (typeof payload === 'object') && (payload.isAxiosError === true); };
Version data entries
9 entries across 9 versions & 1 rubygems