Open code-forger opened 5 months ago
Sorry for the super tiny PR.
However in this comment, its noted that passing down the input param mutateDocument is unnecessary.
mutateDocument
This is because in the case mutateDocument was **true** passing down true is effectively a no-op.
**true**
true
and in the case mutateDocument was **false** a deep clone has already taken place, so further deep clones are redundant and affect performance.
**false**
The comment had the above switched.
Sorry for the super tiny PR.
However in this comment, its noted that passing down the input param
mutateDocument
is unnecessary.This is because in the case
mutateDocument
was**true**
passing downtrue
is effectively a no-op.and in the case
mutateDocument
was**false**
a deep clone has already taken place, so further deep clones are redundant and affect performance.The comment had the above switched.