Trying to filter an array of objects by start and end object values.
start = "Feb-2015"
end = "Jul-2015"
result = array.sort(2,7);
have tried this but I have dates, I will be not knowing the index of it. array = [ { "date": "Jan-2015" }, { "date": "Feb-2015" }, { "date": "Mar-2015" }, { "date": "Apr-2015" }, { "date": "May-2015" }, {, "date": "Jun-2015" }, { "date": "Jul-2015" }, { "date": "Aug-2015" } ]
expected output:-
result = [
{
"date": "Feb-2015"
},
{
"date": "Mar-2015"
},
{
"date": "Apr-2015"
},
{ "date": "May-2015"
},
{,
"date": "Jun-2015"
},
{
"date": "Jul-2015"
}
]