assets/js/dataFromServ.js
// process to put id && and table name in arrays  
process to put id && and table name in arrays
process to put id && and table name in arrays
function processElement(element){
    let type = element.dataset.type;
    if(type === "books"){
        books.push(element.value);
    } else if(type === "disks") {
        disks.push(element.value);
    } else if(type === "furnitures") {
        furniture.push(element.value);
    }
}
function processElement ( element ) { let type = element . dataset . type ; if ( type === "books" ) { books . push ( element . value ) ; } else if ( type === "disks" ) { disks . push ( element . value ) ; } else if ( type === "furnitures" ) { furniture . push ( element . value ) ; } }
process to put id && and table name in arrays
process to put id && and table name in arrays