Hash Tables & JavaScript Objects
What behavior does this Proxy implementation add to the object?
const proxy = new Proxy({}, {
get: (target, prop) => {
return prop in target ? target[prop] : 0;
}
});
const proxy = new Proxy({}, {
get: (target, prop) => {
return prop in target ? target[prop] : 0;
}
});