/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/app/src/utils/same.ts
6 строк
223 B
Albin Groen
fix(app): fix flicker and navigation when collapsing/expanding projects (#6658)
05 янв 2026, 20:24
Не верифицирован
05 янв 2026, 20:24
bbd1c07
Код
Авторство
О чём код?
export function same<T>(a: readonly T[] | undefined, b: readonly T[] | undefined) { if (a === b) return true if (!a || !b) return false if (a.length !== b.length) return false return a.every((x, i) => x === b[i]) }