in normal object we can push to normal array value like obj.l =[]; obj.l.push("test")
Example.
var prxy = new Proxy({} , {
get(target, name){
return target[name]
},
set(target,name, value){
target[name] = value;
return true;
}
})
prxy.h = {test : "test"}
>> {test: "test"}
prxy.h
>>{test: "test"}
prxy.h.push("test")
>>VM2724:1 Uncaught TypeError: prxy.h.push is not a function
at <anonymous>:1:8