Hi All
Wonder if someone could help me with what is probably a easy question. I am using Cherrio to get an array of items from a website. The data returned looks like the following in Console:
I was wondering if there is a way to remove all the white space?
pm.test("Example", function(){
const $ = cheerio.load(pm.response.text())
let getAllInstancesOfData = $("td[class='dataDark']").toArray();
let mydata= getAllInstancesOfData[1].children[0].data;
console.log(mydata);
});