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
I noticed some strange behavior when escaping objects in an array using map. Only the first object is escaped as I would expect and the rest are strings of the type?
The first call is passing 0 for the stringifyObjects argument, so objects are not stringified. The second two calls are passing in a truthy value, resulting in objects being returned as their .toString() output.
I noticed some strange behavior when escaping objects in an array using map. Only the first object is escaped as I would expect and the rest are strings of the type?
For example,
produces:
Do you know why this is happening?
If this is not expected behavior in some way I can try to put together a PR after I complete my current project if you like.
The text was updated successfully, but these errors were encountered: