Ezvor

2690. Infinite Method Object

Easy Preparing judge… LeetCode

Hints

Hint 1
Javascript has the concept of Proxy. That concept is critical to this problem.
Hint 2
Override all "get" for the object. Return a function instead.
Hint 3
That function should return the "prop", i.e. the method name.