You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example assumes you're inside a promise or try catch block. The issue is that you are trying to throw an error inside of a callback. Try console.log(err) instead of throwing it
So using the example given (from readme file of repository and npm page), where
err
is an error anddata
is an array of arrays:It's actually
err
what's an array of arrays. I mean, data is undefined. Trying the same code above, I get this on console:Edit: After watching the code I see that the callback actually returns the variable with the actual data.
The text was updated successfully, but these errors were encountered: