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)
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac9a2-47ead.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac9a2-47ead.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?