src/components/ebay-menu/index.js
function setCheckedList(indexArray) {
    if (indexArray) {
        this.state.items.forEach((item) => {
            item.checked = false;
        });

        indexArray.forEach((index) => {
            this.setCheckedItem(index);
        });

        this.processAfterStateChange(indexArray);
    }
}
function setCheckedList(indexArray) {
    if (indexArray) {
        this.state.items.forEach((item) => {
            item.checked = false;
        });

        indexArray.forEach((index) => {
            this.setCheckedItem(index);
        });

        this.processAfterStateChange(indexArray);
    }
}
function setCheckedList ( indexArray ) { if ( indexArray ) { this . state . items . forEach ( ( item ) => { item . checked = false ; } ) ; indexArray . forEach ( ( index ) => { this . setCheckedItem ( index ) ; } ) ; this . processAfterStateChange ( indexArray ) ; } }
Set the list of options by their index
@param {Array} indexArray
Set the list of options by their index