Just wrap the function and return it. Does not have any
logic to restore, since it's not actually modifying anything.
The results hang off the function as the 'calls' property.
The added fn.args() method will return an array of the arguments
passed to each call since the last time it was inspected.
Just wrap the function and return it. Does not have any logic to restore, since it's not actually modifying anything. The results hang off the function as the 'calls' property.
The added
fn.args()
method will return an array of the arguments passed to each call since the last time it was inspected.