mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
7 lines
220 B
JavaScript
7 lines
220 B
JavaScript
|
|
export function findBySession(termGroupState, sessionUid) {
|
||
|
|
const {termGroups} = termGroupState;
|
||
|
|
return Object.keys(termGroups)
|
||
|
|
.map(uid => termGroups[uid])
|
||
|
|
.find(group => group.sessionUid === sessionUid);
|
||
|
|
}
|