I am using Firebase Auth to create users and logging the error so that I can display it to the user. This logging is currently in test and goes as follows:
console.log(error);
console.log(typeof(error))
In my console I get the following:
[Error: [auth/invalid-email] The email address is badly formatted.]
object
Usually when I get an object it is returned in some kind of {} format so I am confused why it is now in seemingly-array-like format? Could someone shed on light on how this works?