Consider this scenario:
let myarray = [a, b, c, d, e];
I aim to choose all elements from the array except for c.
const myselection = myarray.slice(3, 5);
This results in only selecting d and e. To include a and b, I attempted:
const myselection = myarray.slice(3, 5) + myarray.slice(0, 2);
This combination gives me d, e, a, and b. However, the output lacks commas between e and a: "d,ea,b". This format is not ideal as a selector. Would there be a solution to this issue? Maybe through the use of negative numbers?
Thank you in advance for your assistance! Lee