I have this working code (puppeteer) : 
async function extractedEvaluateCall(page) {
await page.waitForXPath(xpath);
const links = await page.$x(xpath);
const results = await page.evaluate((...links) => {
return links.map(e => e.innerText);
}, ...links);
}
What does the notation ...
does here ?
I tried without, it doesn't work:
UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON Are you passing a nested JSHandle?
links is already an array, why the need of spread operator ?