let arr =["a","b","c"]; // ES6 way const duplicate = [...arr]; // older method const duplicate = Array.from(arr);