title: Iterate over Object Literal Values
body: <p>I have a standard jQuery plugin set up that creates default settings at the top:</p>
  
  <pre><code>jQuery.fn.myPlugin = function(options) { 
      var defaults = {  
          starts: "0px,0px",
          speed: 250, ...
      };
      o = $.extend(defaults, options);
  }
  </code></pre>
  
  <p>I have another variable called <code>numberOfObjects</code>.</p>
  
  <p>I'm trying to loop through the default variables. For each object found (from <code>numberOfObjects</code>) I need to duplicate the value of the variable value. So, if the <code>numberOfObjects</code> variable is 3, the <code>defaults.starts</code> should be <code>0px,0px &gt; 0px,0px &gt; 0px,0px</code>. The &amp; gt; is used to split values.</p>
  
  <p>This is what I currently have. <code>X</code> represents the variable name inside defaults. <code>Y</code> represents the variable for the current value of <code>x</code>. I've gotten this far and have no clue what to do next.</p>
  
  <pre><code>for (x in defaults) {   // x is defaults.x
      defaults.x = defaults.x + " &gt; y";
  }
  </code></pre>