copying arrays js code example
Example 1: js array clone
let clone = [...myArray]
Example 2: js copy array into another
var destinationArray = Array.from(sourceArray);
let clone = [...myArray]
var destinationArray = Array.from(sourceArray);