I have the following basic js function:
function copy_array(arr) {
    // copy array and return existing array
    const cp = [];
    for(let i=0; i < arr.length; i++)
        cp[i] = arr[i];
    return cp;
}
Is it possible to convert this into an arrow function, for example:
const copy_array2 = (arr) => {
   // ?
}
 
    