Chapter 6: functions

task 1

Spy Decorator

Create a decorator spy(func) that should return a wrapper that saves all calls to function in its calls property. Every call is saved as an array of arguments.