15 lines
256 B
JavaScript
15 lines
256 B
JavaScript
// Metro module 4305 (f4306).
|
|
module.exports = function copyArray(a0, a1) {
|
|
let r4 = a1;
|
|
const length = a0.length;
|
|
if (!a1) {
|
|
r4 = Array(length);
|
|
}
|
|
let r0 = 0;
|
|
while (r0 < length) {
|
|
r4[r0] = a0[r0];
|
|
r0 = r0 + 1;
|
|
}
|
|
return r4;
|
|
};
|