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:
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);
the output should give me something like 10 - 15 - 20 - 25 - 30