title: How to avoid this case of evil eval?
body: <p>I inherited a javascript code base and I am new to javascript. So i am using JSHint to avoid common mistakes, misuses.</p>
  
  <p>JSHint has found this piece of code but i do not know how to avoid the evil eval:</p>
  
  <pre><code>function GetProperties(object) {
      var result, property, t;
      result = '';
      for (property in object) {
          if (property.indexOf('Get', 0) === 0) {
              t = object[property] + "...";
              eval("if (GetNumOfParameter(t) == 0) var m = object." + property + "(); else var m = -100;");
  
              if (window.m != -100) {
                  result += property + ': ' + window.m + '\r\n';
              }
          }
      }
      return result;
  }
  </code></pre>