I have an array, which has a variable in it, like this:
let someStringVariable = "asdfljhasdlkjfhaasdfjasdfasd";
let string = ["1","36", someStringVariable, "bro" ];
I want to clone this array, but i want to get a new array with only values, without any variables in it
i've already tried slice(), but it seems like its not getting "someStringVariable" value as it is, its not coping it in the newArray.
What will you advise to try here?