How to rewrite this code

using the iview framework, if you want to disable discontiguous dates, try to find out and write back in the following way.

disabledDate(date) {
    const disabledDay = date.getDate();
    return disabledDay === 15 || disabledDay === 18 || disabledDay === 22;
}


now there is a dynamic array of dates. Each time the user clicks the add button, the length of this array is read plus 1, which requires a dynamic disabled date. I don"t know how to rewrite the above code

.
let dateArr=[15,18,25,26,29...]//

the following is my rewrite, but I don"t know how to write

in the loop.
disabledDate(date) {
    const disabledDay = date.getDate();
    let x;
    let dateArr=[15,18,25,26,29...];
    for(let i=0;i<dateArr.length;iPP){
        //x=?
        //
    }
    return x;
}
Mar.25,2021

disabledDate(date) {
    const disabledDay = date.getDate();
    let dateArr=[15,18,25,26,29...];
    return dateArr.includes(disabledDay)
}
Menu