Let object = {name:"somename"};
Let objectKeys = Object.keys(object);
Let totality = `${object}.${objectKeys[0]}`;
Console.log(totality);
Desired result is "somename"
I'm writing a Chrome extension that scrapes data off of a website, and exports to csv. I plan to have the user specify what fields they want to export so this isn't necessary really, but I thought it would be a fun learning experience. I don't know how to word exactly what it is I am trying to do, so research is difficult.
I'm not experiencing any errors, and this isn't as much a code snippet as it is something i quickly typed on my phone to get the idea by as to what I'm trying to do, and it is exactly the dynamic thing, thank you!