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
Bumped into this while doing some unit testing where I was using the object given to format elsewhere in a deepEqual.
It's usually considered good practice not to modify objects passed as arguments. I personally thought I was going mad before realizing sharp.format had this undocumented side effect.
Not sure if this is generalized to the whole code base.
The text was updated successfully, but these errors were encountered:
Bumped into this while doing some unit testing where I was using the object given to
format
elsewhere in adeepEqual
.It's usually considered good practice not to modify objects passed as arguments. I personally thought I was going mad before realizing
sharp.format
had this undocumented side effect.Not sure if this is generalized to the whole code base.
The text was updated successfully, but these errors were encountered: