)).forEach((o)=>{ products = products.concat(o.products) }); function searchProducts(e){ let searchTerm = e.value.toLowerCase(); if (searchTerm !== “”){ showSearch(true); let results = products.filter(o => o.title.toLowerCase().includes(searchTerm)); let cont = document.querySelector(“#showroom-view-search .products-cont”); cont.innerHTML = “”; if (results.length){