This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/_internal/copyArray.js
T

15 lines
271 B
JavaScript

'use strict';
function copyArray(source, array) {
const length = source.length;
if (array == null) {
array = Array(length);
}
for (let i = 0; i < length; i++) {
array[i] = source[i];
}
return array;
}
module.exports = copyArray;