title: Extracting Specfic range of values within javascript array
body: <p>I have this array of values as shown below </p>
  
  <pre><code>var jsonData = 
  [{date:'Jan 2004',volume:22088000},{date:'Feb 2004',volume:22088000},    
  {date:'Mar 2004',volume:22088000},{date:'Apr 2004',volume:22088000},
  {date:'May 2004',volume:22088000},{date:'Jun 2004',volume:22088000},
  {date:'July 2004',volume:22088000},{date:'Aug 2004',volume:22088000},
  {date:'Sept 2004',volume:22088000},{date:'October 2004',volume:22088000},
  {date:'November 2004',volume:22088000},{date:'Dec 2004',volume:22088000}]
  </code></pre>
  
  <p>I have two Date Pickers (<strong><em>To Date</em></strong> and <strong><em>From Date</em></strong> ) in which i will pass this date value, for example (Jan 2004 and November 2004)</p>
  
  <p>and on submit button , i want to collect the volume Data  in between them </p>
  
  <pre><code>var volumeData = [];
  // I don't know how to write a condition 
  priceData.push([i, jsonData[i].volume]);
  </code></pre>
  
  <p>How can i do that ?</p>
  
  <p>any ideas please ?</p>