/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
lib/utils/term-groups.ts
8 строк
306 B
Labhansh Agrawal
move typings into a separate directory
25 июл 2023, 13:04
25 июл 2023, 13:04
c62ed62
Код
Авторство
О чём код?
import type {ITermState} from '../../typings/hyper'; export default function findBySession(termGroupState: ITermState, sessionUid: string) { const {termGroups} = termGroupState; return Object.keys(termGroups) .map((uid) => termGroups[uid]) .find((group) => group.sessionUid === sessionUid); }