So I need the original(argument) array to stay the same, AND have another array (array2) with it's values to make some changes on it but mantain the original(argument) array intact.
Example:
let wtf = function(array){
    let array2 = array
    array2[0] = array2[0].replace(array2[0][0],"1") 
    console.log( array + " "  + array2)
}
wtf(["a","b"])
Result in console:
1,b 1,b
BUT I need  a,b 1,b
(that comes from: array = a,b and array2 = 1,b  )
Thanks!
 
     
    