title: ejs how to iterate object
body: <p>I have a simple object literal which is address as shown here</p>
  
  <pre><code>address: {
      country: String,
      state: String,
      city: String,
      zip: String,
      street: String
  }
  </code></pre>
  
  <p>and its inside an object which i'm passing with express.js render function.</p>
  
  <p>in my template page i'm trying to for loop inside this object as shown:</p>
  
  <pre><code>&lt;% for (var prop in artist.address ) { %&gt;
    &lt;%- artist.address[prop] %&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>which output the data but includes the ejs functions as well like so: </p>
  
  <pre><code>function () { return this.get(path); } function () { return this.get(path); } yafo 09988 jerusalem israel israeli [object Object] undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined [object Object] [object Object] function () { var self = this , hookArgs // arguments eventually passed to the hook - are mutable , lastArg = arguments[arguments.length-1] , pres = this._pres[name] , posts = this._posts[name] , _total = pres.length , _current = -1 , _asyncsLeft = proto[name].numAsyncPres , _next = function () { if (arguments[0] instanceof Error) { return handleError(arguments[0]); } var _args = Array.prototype.slice.call(arguments) , currPre , preArgs; if (_args.length &amp;&amp; !(arguments[0] == null &amp;&amp; typeof lastArg === 
  </code></pre>
  
  <p>so how do i need to iterate my object?</p>