Disable days of week on calendar

Is it posible to disable days of week?, say tuesday and friday in all coming dates?, instead of passing an array of dates?

app.calendar.create({
  disabled: function(d){
    return [2,5].filter( i => i == d.getDay() ).length
  }
});
1 Like

Thank you very much!