-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modification of 1st parameter of $append #139
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code produces
{ a: [ 1 ] }
instead of{ a: [] }
.The 1st parameter of
$append
is modified as a side effect of$append
call.The documentation of $append do not mention this side effect. Also, similar function for array such as
$reverse
or$sort
do not modify their argument.The text was updated successfully, but these errors were encountered: