Ok I am killing my brain here I have an array
var myArray = ['Bob', 'Sue', 'Jim'];
myArray.__proto__ = new Entity();
//Entity looks something like this
Entity = function(){
this.isChanged = false;
this.add = function(newPerson){
alert(this.length); //alerts with 3
alert(JSON.stringify(this)); //alerts a {}
this.push(newPerson);
this.isChanged = true;
}
}
push does not exist on an object but its obviously an array as per the alert returning a 3.
very curious how to access my array that seems to be wrapped by an object thanks to my proto