title: Generic Getters / Setters for ALL Javascript Objects?
body: <p>Is it possible to define generic getters / setters for ALL Javascript Objects?</p>
  
  <p>Pseudocode of what I want to do is below. Basically, person and animal route <strong>getters</strong> and <strong>setters</strong> to <strong>CustomGetter</strong> and <strong>CustomSetter</strong>.</p>
  
  <pre><code>function NewPerson()
  {
      var person;
      var animal;
  
      var person.name = 'John Doe';
      console.log("Name: " + person.name); //Prints "Name: JOHNDOE CUSTOM"
  
      var animal.type = 'Herbivore';
      console.log("Animal: " + animal.type); //Prints "Animal: HERBIVORE CUSTOM"
  
      console.log("Age: " + person.age); //Prints "Age: NON EXISTANT PROPERTY";
  }
  
  function CustomGetter(theObj, propertyName)
  {
      if(theObj.hasproperty(propertyName))
          return ToUpperCase(theObj.propertyName);
      else
      {
          return "NON EXISTANT PROPERTY";
      }
  }
  
  function CustomSetter(theObj, propertyName, value)
  {
      if(theObj.hasproperty(propertyName))
          theObj.propertyName = value + " CUSTOM";
      else
      {
          console.log("NON PROPERTY TO SET");
      }
  }
  </code></pre>
  
  <p>Thank you!</p>