HackYourFuture / Assignments

This repository contains all of the homework exercises that need to be handed in for the HackYourFuture curriculum.
Other
10 stars 97 forks source link

Adds assertion to detect if the original array was mutated #83

Closed thibaudszy closed 2 years ago

thibaudszy commented 2 years ago

The first assertion does not flag the mutation of the original array if it is passed as function parameter and mutated, because the results array can reference the same array as initial cart depending on how the function is written.