title: results array between two values - javascript
body: <p>i was wondering if there is a way to get an array with minimum and maximum values get by another array, or something like this:</p>
  
  <pre><code>var numbers = ['10','15','20','25','30','35','40','45','50'];  
  
  var getnumbers = function(min,max){
   //return a result that is push to another array, in this case "results"
  };
  getnumbers(10,30);
  console.log(results);
  </code></pre>
  
  <p>the output should give me something like 10 - 15 - 20 - 25 - 30</p>