title: Prototype.js: How can i return an array without all the methods Prototypes extends Array with?
body: <p>Is there a way to return a new version of an array/hash that does not contain all the methods/functions that prototype extends the array object with?</p>
  
  <p>Example:</p>
  
  <pre><code>var myArray = $A();
  
  myArray['test'] = '1';
  
  myArray['test2'] = '2';
  
  var myVariableToPassToAjax = myArray;
  </code></pre>
  
  <p>If I debug myVariableToPassToAjax it looks like this:</p>
  
  <pre><code>Array
  (
  
    [test] =&gt; 1
  
    [test2] =&gt; 2
  
    [each] =&gt; function each(iterator, context) {
      ..........
      ..........
    }
  
    ...and all the other extended array functions
  );
  </code></pre>
  
  <p>Is there a way to solve this? :-/</p>
  
  <p>Morten</p>