var dates=["2017-08-10","2017-08-11","2017-08-12","2017-08-13","2017-08-14"];
var start="2017-08-13"
function filterDate(dates=[],start){
let s=new Date(start);
let resDates=[];
q.forEach((dateStr=>{
let date=new Date(dateStr)
if(date>=s){
resDates.push(dateStr)
}
}))
return resDates;
}
console.log(filterDate(dates,start))
created() {
this.$http.get('/api/main-page/transports/get-transports').then(response => {//Эта функция будет выполнена после инициализации
this.$set(this,'personalTabs', response.body.personalTransportTabs);
this.dataLoaded = true;
}).catch(error => {
console.log(error);
});
},
data() {
return {
personalTabs: []
};
},