if the original function had properties on it, like func.calledCount or whatever, then the decorated one will not provide them❗
there's a way to create decorators that keep access to function properties, but this requires using a special Proxy object to wrap a function. 👉 Proxy and Reflect.