题解 | #Proxy计数器#
Proxy计数器
https://www.nowcoder.com/practice/9911c5f8ecef4b3088ccbba397b7a984
let count = 0 const _proxy = object => { // 补全代码 const p = new Proxy(object, { get: function (object, prop) { return prop in object ? count++ : count--; } }); return p }