js copy array into another

JavaScript
var destinationArray = Array.from(sourceArray);
Source

Also in JavaScript: