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.mjs
T

13 lines
261 B
JavaScript

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;
}
export { copyArray as default };