-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is response.data.constructor !== Object
#565
Comments
So I tried to debug this phenomenon: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
anyobject.constructor === Object
is a popular method to check if a variable is an object (e.g. see here: https://stackoverflow.com/a/16608074/1301058)For the server-side response data from
$axios.get
this doesn't work becauseresponse.data.constructor === Object
returnsfalse
.Steps to reproduce:
git clone [email protected]:LucidityDesign/axios-module.git
yarn install
yarn dev
response type false
Expected behaviour:
The text was updated successfully, but these errors were encountered: