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
JavaScript invokes toString when converting an object to a string. If you'd rename the current asString to toString, this would follow that convention.
Cheers
The text was updated successfully, but these errors were encountered:
Well, I'd say API global consistency and conventions are most important and debug workarounds are second to that. In JavaScript that would be toString (and toJSON and parse, but that for another day ;-).
If console.dir stringifies an object with toString, then that its problem and should be fixed there. Skimming only the code of console.dir and util.inspect didn't seem to hint that, though.
JavaScript invokes
toString
when converting an object to a string. If you'd rename the currentasString
totoString
, this would follow that convention.Cheers
The text was updated successfully, but these errors were encountered: