I am trying to fix code, but I stopped at two rows of code that are so weird I can't understand them. All rows:
//Extraction of urls
let f = !this.last_product_url
for(const productLink of productLinks) {
const url = await productLink.getAttribute('href')
if(!f) {
f = url === this.last_product_url
f && productUrls.push(url)
}
else {
productUrls.push(url)
}
}
What are these two rows do:
f = url === this.last_product_url
f && productUrls.push(url)