UNPKG

@bitblit/asyncglk

Version:
17 lines (13 loc) 332 B
/* Common GlkApi things ==================== Copyright (c) 2022 Dannii Willis MIT licenced https://github.com/curiousdannii/asyncglk */ export function copy_array(source, target, length) { const copy_length = Math.min(length, target.length); for (let i = 0; i < copy_length; i++) { target[i] = source[i]; } }