Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
export function arrayEqual(a, b) {
|
|
if (a.length !== b.length) {
|
|
return false;
|
|
}
|
|
return arrayStartsWith(a, b);
|
|
}
|
|
export function arrayStartsWith(array, start) {
|
|
if (start.length > array.length) {
|
|
return false;
|
|
}
|
|
for (let i = 0; i < start.length; i++) {
|
|
if (start[i] !== array[i]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|