Implement an optimized counter function that returns an object with methods to manipulate the counter.
The returned methods must be memoized, meaning the same function instance is returned every time.
Arguments:
Returns: An object containing:
JavaScript Function
No test results yet
Click "Run" to execute tests