"yarn test" or "npm run test"
I definitely "cheesed" it with destructuring to strictly meet the requirements. However, that is also how I clone objects in the real world. If you want an example of recursive object access, I can easily do that version as well.